var OGVDecoderVideoVP9MT
(function() {
  var scriptSrc;
  if (typeof document !== 'undefined' && document.currentScript) scriptSrc = document.currentScript.src;
OGVDecoderVideoVP9MT = function(OGVDecoderVideoVP9MT) {
  OGVDecoderVideoVP9MT = OGVDecoderVideoVP9MT || {};
  if (!OGVDecoderVideoVP9MT.currentScriptUrl) OGVDecoderVideoVP9MT.currentScriptUrl = scriptSrc;
  var Module = OGVDecoderVideoVP9MT;

var options=Module;Module={print:(function(str){console.log(str)})};if(typeof OGVLoader!=="undefined"){Module["pthreadMainPrefixURL"]=OGVLoader.base+"/"}if(options["memoryLimit"]&&!options.wasmBinary){Module["TOTAL_MEMORY"]=options["memoryLimit"]}for(option in options){if(options.hasOwnProperty(option)){Module[option]=options[option]}}var Math_imul_orig=Math.imul;var OGVDecoderVideoVP9MT=Module;var Module;if(!Module)Module=(typeof OGVDecoderVideoVP9MT!=="undefined"?OGVDecoderVideoVP9MT:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else if(Module["ENVIRONMENT"]==="PTHREAD"){ENVIRONMENT_IS_WORKER=true;ENVIRONMENT_IS_PTHREAD=true}else{throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER}var ENVIRONMENT_IS_PTHREAD;if(!ENVIRONMENT_IS_PTHREAD)ENVIRONMENT_IS_PTHREAD=false;var PthreadWorkerInit=Module["pthreadWorkerInit"]||undefined;if(!ENVIRONMENT_IS_PTHREAD)PthreadWorkerInit={};var currentScriptUrl=Module["currentScriptUrl"]||(ENVIRONMENT_IS_WORKER?undefined:document.currentScript.src);if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=console.log;if(!Module["printErr"])Module["printErr"]=console.warn;var nodeFS;var nodePath;Module["read"]=function shell_read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);return binary?ret:ret.toString()};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};Module["load"]=function load(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function shell_read(){throw"no read() available"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof quit==="function"){Module["quit"]=(function(status,toThrow){quit(status)})}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function shell_read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){Module["readBinary"]=function readBinary(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return xhr.response}}Module["readAsync"]=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function shell_print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function shell_printErr(x){console.warn(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}if(!Module["quit"]){Module["quit"]=(function(status,toThrow){throw toThrow})}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(var key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=undefined;var Runtime={setTempRet0:(function(value){tempRet0=value;return value}),getTempRet0:(function(){return tempRet0}),stackSave:(function(){return STACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return Runtime.QUANTUM_SIZE}else if(type[0]==="i"){var bits=parseInt(type.substr(1));assert(bits%8===0);return bits/8}else{return 0}}}}),getNativeFieldSize:(function(type){return Math.max(Runtime.getNativeTypeSize(type),Runtime.QUANTUM_SIZE)}),STACK_ALIGN:16,prepVararg:(function(ptr,type){if(type==="double"||type==="i64"){if(ptr&7){assert((ptr&7)===4);ptr+=4}}else{assert((ptr&3)===0)}return ptr}),getAlignSize:(function(type,size,vararg){if(!vararg&&(type=="i64"||type=="double"))return 8;if(!type)return Math.min(size,8);return Math.min(size||(type?Runtime.getNativeFieldSize(type):0),Runtime.QUANTUM_SIZE)}),dynCall:(function(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}else{return Module["dynCall_"+sig].call(null,ptr)}}),functionPointers:[],addFunction:(function(func){for(var i=0;i<Runtime.functionPointers.length;i++){if(!Runtime.functionPointers[i]){Runtime.functionPointers[i]=func;return 2*(1+i)}}throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}),removeFunction:(function(index){Runtime.functionPointers[(index-2)/2]=null}),warnOnce:(function(text){if(!Runtime.warnOnce.shown)Runtime.warnOnce.shown={};if(!Runtime.warnOnce.shown[text]){Runtime.warnOnce.shown[text]=1;Module.printErr(text)}}),funcWrappers:{},getFuncWrapper:(function(func,sig){assert(sig);if(!Runtime.funcWrappers[sig]){Runtime.funcWrappers[sig]={}}var sigCache=Runtime.funcWrappers[sig];if(!sigCache[func]){if(sig.length===1){sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func)}}else if(sig.length===2){sigCache[func]=function dynCall_wrapper(arg){return Runtime.dynCall(sig,func,[arg])}}else{sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func,Array.prototype.slice.call(arguments))}}}return sigCache[func]}),getCompilerSetting:(function(name){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"}),stackAlloc:(function(size){var ret=STACKTOP;STACKTOP=STACKTOP+size|0;STACKTOP=STACKTOP+15&-16;return ret}),staticAlloc:(function(size){var ret=STATICTOP;STATICTOP=STATICTOP+size|0;STATICTOP=STATICTOP+15&-16;return ret}),dynamicAlloc:(function(size){var ret=HEAP32[DYNAMICTOP_PTR>>2];var end=(ret+size+15|0)&-16;HEAP32[DYNAMICTOP_PTR>>2]=end;if(end>=TOTAL_MEMORY){var success=enlargeMemory();if(!success){HEAP32[DYNAMICTOP_PTR>>2]=ret;return 0}}return ret}),alignMemory:(function(size,quantum){var ret=size=Math.ceil(size/(quantum?quantum:16))*(quantum?quantum:16);return ret}),makeBigInt:(function(low,high,unsigned){var ret=unsigned?+(low>>>0)+ +(high>>>0)*+4294967296:+(low>>>0)+ +(high|0)*+4294967296;return ret}),GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};Module["Runtime"]=Runtime;var ABORT=0;var EXITSTATUS=0;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}function getCFunc(ident){var func=Module["_"+ident];if(!func){try{func=eval("_"+ident)}catch(e){}}assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)");return func}var cwrap,ccall;((function(){var JSfuncs={"stackSave":(function(){Runtime.stackSave()}),"stackRestore":(function(){Runtime.stackRestore()}),"arrayToC":(function(arr){var ret=Runtime.stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}),"stringToC":(function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=Runtime.stackAlloc(len);stringToUTF8(str,ret,len)}return ret})};var toC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=function ccallFunc(ident,returnType,argTypes,args,opts){var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=Runtime.stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func.apply(null,cArgs);if(returnType==="string")ret=Pointer_stringify(ret);if(stack!==0){if(opts&&opts.async){EmterpreterAsync.asyncFinalizers.push((function(){Runtime.stackRestore(stack)}));return}Runtime.stackRestore(stack)}return ret};var sourceRegex=/^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;function parseJSFunc(jsfunc){var parsed=jsfunc.toString().match(sourceRegex).slice(1);return{arguments:parsed[0],body:parsed[1],returnValue:parsed[2]}}var JSsource=null;function ensureJSsource(){if(!JSsource){JSsource={};for(var fun in JSfuncs){if(JSfuncs.hasOwnProperty(fun)){JSsource[fun]=parseJSFunc(JSfuncs[fun])}}}}cwrap=function cwrap(ident,returnType,argTypes){argTypes=argTypes||[];var cfunc=getCFunc(ident);var numericArgs=argTypes.every((function(type){return type==="number"}));var numericRet=returnType!=="string";if(numericRet&&numericArgs){return cfunc}var argNames=argTypes.map((function(x,i){return"$"+i}));var funcstr="(function("+argNames.join(",")+") {";var nargs=argTypes.length;if(!numericArgs){ensureJSsource();funcstr+="var stack = "+JSsource["stackSave"].body+";";for(var i=0;i<nargs;i++){var arg=argNames[i],type=argTypes[i];if(type==="number")continue;var convertCode=JSsource[type+"ToC"];funcstr+="var "+convertCode.arguments+" = "+arg+";";funcstr+=convertCode.body+";";funcstr+=arg+"=("+convertCode.returnValue+");"}}var cfuncname=parseJSFunc((function(){return cfunc})).returnValue;funcstr+="var ret = "+cfuncname+"("+argNames.join(",")+");";if(!numericRet){var strgfy=parseJSFunc((function(){return Pointer_stringify})).returnValue;funcstr+="ret = "+strgfy+"(ret);"}if(!numericArgs){ensureJSsource();funcstr+=JSsource["stackRestore"].body.replace("()","(stack)")+";"}funcstr+="return ret})";return eval(funcstr)}}))();Module["ccall"]=ccall;Module["cwrap"]=cwrap;function setValue(ptr,value,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":HEAP8[ptr>>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=+1?tempDouble>+0?(Math_min(+Math_floor(tempDouble/+4294967296),+4294967295)|0)>>>0:~~+Math_ceil((tempDouble- +(~~tempDouble>>>0))/+4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}Module["setValue"]=setValue;function getValue(ptr,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":return HEAP8[ptr>>0];case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}return null}Module["getValue"]=getValue;var ALLOC_NORMAL=0;var ALLOC_STACK=1;var ALLOC_STATIC=2;var ALLOC_DYNAMIC=3;var ALLOC_NONE=4;Module["ALLOC_NORMAL"]=ALLOC_NORMAL;Module["ALLOC_STACK"]=ALLOC_STACK;Module["ALLOC_STATIC"]=ALLOC_STATIC;Module["ALLOC_DYNAMIC"]=ALLOC_DYNAMIC;Module["ALLOC_NONE"]=ALLOC_NONE;function allocate(slab,types,allocator,ptr){var zeroinit,size;if(typeof slab==="number"){zeroinit=true;size=slab}else{zeroinit=false;size=slab.length}var singleType=typeof types==="string"?types:null;var ret;if(allocator==ALLOC_NONE){ret=ptr}else{ret=[typeof _malloc==="function"?_malloc:Runtime.staticAlloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){var ptr=ret,stop;assert((ret&3)==0);stop=ret+(size&~3);for(;ptr<stop;ptr+=4){HEAP32[ptr>>2]=0}stop=ret+size;while(ptr<stop){HEAP8[ptr++>>0]=0}return ret}if(singleType==="i8"){if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(new Uint8Array(slab),ret)}return ret}var i=0,type,typeSize,previousType;while(i<size){var curr=slab[i];if(typeof curr==="function"){curr=Runtime.getFunctionIndex(curr)}type=singleType||types[i];if(type===0){i++;continue}if(type=="i64")type="i32";setValue(ret+i,curr,type);if(previousType!==type){typeSize=Runtime.getNativeTypeSize(type);previousType=type}i+=typeSize}return ret}Module["allocate"]=allocate;function getMemory(size){if(!staticSealed)return Runtime.staticAlloc(size);if(!runtimeInitialized)return Runtime.dynamicAlloc(size);return _malloc(size)}Module["getMemory"]=getMemory;function Pointer_stringify(ptr,length){if(length===0||!ptr)return"";var hasUtf=0;var t;var i=0;while(1){t=HEAPU8[ptr+i>>0];hasUtf|=t;if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;var ret="";if(hasUtf<128){var MAX_CHUNK=1024;var curr;while(length>0){curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK)));ret=ret?ret+curr:curr;ptr+=MAX_CHUNK;length-=MAX_CHUNK}return ret}return Module["UTF8ToString"](ptr)}Module["Pointer_stringify"]=Pointer_stringify;function AsciiToString(ptr){var str="";while(1){var ch=HEAP8[ptr++>>0];if(!ch)return str;str+=String.fromCharCode(ch)}}Module["AsciiToString"]=AsciiToString;function stringToAscii(str,outPtr){return writeAsciiToMemory(str,outPtr,false)}Module["stringToAscii"]=stringToAscii;var UTF8Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(u8Array,idx){var endPtr=idx;while(u8Array[endPtr])++endPtr;if(endPtr-idx>16&&u8Array.subarray&&UTF8Decoder){return UTF8Decoder.decode(u8Array.subarray(idx,endPtr))}else{var u0,u1,u2,u3,u4,u5;var str="";while(1){u0=u8Array[idx++];if(!u0)return str;if(!(u0&128)){str+=String.fromCharCode(u0);continue}u1=u8Array[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}u2=u8Array[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u3=u8Array[idx++]&63;if((u0&248)==240){u0=(u0&7)<<18|u1<<12|u2<<6|u3}else{u4=u8Array[idx++]&63;if((u0&252)==248){u0=(u0&3)<<24|u1<<18|u2<<12|u3<<6|u4}else{u5=u8Array[idx++]&63;u0=(u0&1)<<30|u1<<24|u2<<18|u3<<12|u4<<6|u5}}}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}}Module["UTF8ArrayToString"]=UTF8ArrayToString;function UTF8ToString(ptr){return UTF8ArrayToString(HEAPU8,ptr)}Module["UTF8ToString"]=UTF8ToString;function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=2097151){if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=67108863){if(outIdx+4>=endIdx)break;outU8Array[outIdx++]=248|u>>24;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+5>=endIdx)break;outU8Array[outIdx++]=252|u>>30;outU8Array[outIdx++]=128|u>>24&63;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;return outIdx-startIdx}Module["stringToUTF8Array"]=stringToUTF8Array;function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}Module["stringToUTF8"]=stringToUTF8;function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){++len}else if(u<=2047){len+=2}else if(u<=65535){len+=3}else if(u<=2097151){len+=4}else if(u<=67108863){len+=5}else{len+=6}}return len}Module["lengthBytesUTF8"]=lengthBytesUTF8;var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function demangle(func){var __cxa_demangle_func=Module["___cxa_demangle"]||Module["__cxa_demangle"];if(__cxa_demangle_func){try{var s=func.substr(1);var len=lengthBytesUTF8(s)+1;var buf=_malloc(len);stringToUTF8(s,buf,len);var status=_malloc(4);var ret=__cxa_demangle_func(buf,0,0,status);if(getValue(status,"i32")===0&&ret){return Pointer_stringify(ret)}}catch(e){}finally{if(buf)_free(buf);if(status)_free(status);if(ret)_free(ret)}return func}Runtime.warnOnce("warning: build with  -s DEMANGLE_SUPPORT=1  to link in libcxxabi demangling");return func}function demangleAll(text){var regex=/__Z[\w\d_]+/g;return text.replace(regex,(function(x){var y=demangle(x);return x===y?x:x+" ["+y+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function stackTrace(){var js=jsStackTrace();if(Module["extraStackTrace"])js+="\n"+Module["extraStackTrace"]();return demangleAll(js)}Module["stackTrace"]=stackTrace;var PAGE_SIZE=16384;var HEAP,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferViews(){Module["HEAP8"]=HEAP8=new Int8Array(buffer);Module["HEAP16"]=HEAP16=new Int16Array(buffer);Module["HEAP32"]=HEAP32=new Int32Array(buffer);Module["HEAPU8"]=HEAPU8=new Uint8Array(buffer);Module["HEAPU16"]=HEAPU16=new Uint16Array(buffer);Module["HEAPU32"]=HEAPU32=new Uint32Array(buffer);Module["HEAPF32"]=HEAPF32=new Float32Array(buffer);Module["HEAPF64"]=HEAPF64=new Float64Array(buffer)}var STATIC_BASE,STATICTOP,staticSealed;var STACK_BASE,STACKTOP,STACK_MAX;var DYNAMIC_BASE,DYNAMICTOP_PTR;if(ENVIRONMENT_IS_PTHREAD){STATIC_BASE=Module["STATIC_BASE"]||0;STATICTOP=Module["STATICTOP"]||0;DYNAMIC_BASE=Module["DYNAMIC_BASE"]||0;DYNAMICTOP_PTR=Module["DYNAMICTOP_PTR"]||0}else{STATIC_BASE=STATICTOP=STACK_BASE=STACKTOP=STACK_MAX=DYNAMIC_BASE=DYNAMICTOP_PTR=0;staticSealed=false}if(ENVIRONMENT_IS_PTHREAD){staticSealed=true}function abortOnCannotGrowMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value "+TOTAL_MEMORY+", (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 ")}function enlargeMemory(){abort("Cannot enlarge memory arrays, since compiling with pthreads support enabled (-s USE_PTHREADS=1).")}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||33554432;if(TOTAL_MEMORY<TOTAL_STACK)Module.printErr("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+TOTAL_MEMORY+"! (TOTAL_STACK="+TOTAL_STACK+")");if(typeof SharedArrayBuffer!=="undefined"){if(ENVIRONMENT_IS_PTHREAD){buffer=Module.buffer}else{buffer=new SharedArrayBuffer(TOTAL_MEMORY)}((function(undefined){"use strict";function clamp(val,length){val=val|0||0;if(val<0)return Math.max(val+length,0);return Math.min(val,length)}if(typeof SharedArrayBuffer!=="undefined"&&!SharedArrayBuffer.prototype.slice){SharedArrayBuffer.prototype.slice=(function(from,to){var length=this.byteLength;var begin=clamp(from,length);var end=length;if(to!==undefined)end=clamp(to,length);if(begin>end)return new ArrayBuffer(0);var num=end-begin;var target=new ArrayBuffer(num);var targetArray=new Uint8Array(target);var sourceArray=new Uint8Array(this,begin,num);targetArray.set(sourceArray);return target})}}))()}else{if(!ENVIRONMENT_IS_PTHREAD)buffer=new ArrayBuffer(TOTAL_MEMORY)}updateGlobalBufferViews();if(typeof Atomics==="undefined"){Atomics={};Atomics["add"]=(function(t,i,v){var w=t[i];t[i]+=v;return w});Atomics["and"]=(function(t,i,v){var w=t[i];t[i]&=v;return w});Atomics["compareExchange"]=(function(t,i,e,r){var w=t[i];if(w==e)t[i]=r;return w});Atomics["exchange"]=(function(t,i,v){var w=t[i];t[i]=v;return w});Atomics["wait"]=(function(t,i,v,o){if(t[i]!=v)return"not-equal";else return"timed-out"});Atomics["wake"]=(function(t,i,c){return 0});Atomics["wakeOrRequeue"]=(function(t,i1,c,i2,v){return 0});Atomics["isLockFree"]=(function(s){return true});Atomics["load"]=(function(t,i){return t[i]});Atomics["or"]=(function(t,i,v){var w=t[i];t[i]|=v;return w});Atomics["store"]=(function(t,i,v){t[i]=v;return v});Atomics["sub"]=(function(t,i,v){var w=t[i];t[i]-=v;return w});Atomics["xor"]=(function(t,i,v){var w=t[i];t[i]^=v;return w})}function getTotalMemory(){return TOTAL_MEMORY}if(!ENVIRONMENT_IS_PTHREAD){HEAP32[0]=1668509029}else{if(HEAP32[0]!==1668509029)throw"Runtime error: The application has corrupted its heap memory area (address zero)!"}HEAP16[1]=25459;if(HEAPU8[2]!==115||HEAPU8[3]!==99)throw"Runtime error: expected the system to be little-endian!";Module["HEAP"]=HEAP;Module["buffer"]=buffer;Module["HEAP8"]=HEAP8;Module["HEAP16"]=HEAP16;Module["HEAP32"]=HEAP32;Module["HEAPU8"]=HEAPU8;Module["HEAPU16"]=HEAPU16;Module["HEAPU32"]=HEAPU32;Module["HEAPF32"]=HEAPF32;Module["HEAPF64"]=HEAPF64;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Module["dynCall_v"](func)}else{Module["dynCall_vi"](func,callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;if(ENVIRONMENT_IS_PTHREAD)runtimeInitialized=true;function preRun(){if(ENVIRONMENT_IS_PTHREAD)return;if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){if(ENVIRONMENT_IS_PTHREAD)return;if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){if(ENVIRONMENT_IS_PTHREAD)return;callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){if(ENVIRONMENT_IS_PTHREAD)return;callRuntimeCallbacks(__ATEXIT__);runtimeExited=true}function postRun(){if(ENVIRONMENT_IS_PTHREAD)return;if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}Module["addOnPreRun"]=addOnPreRun;function addOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=addOnInit;function addOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=addOnPreMain;function addOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=addOnExit;function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=addOnPostRun;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}Module["intArrayFromString"]=intArrayFromString;function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}Module["intArrayToString"]=intArrayToString;function writeStringToMemory(string,buffer,dontAddNull){Runtime.warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!");var lastChar,end;if(dontAddNull){end=buffer+lengthBytesUTF8(string);lastChar=HEAP8[end]}stringToUTF8(string,buffer,Infinity);if(dontAddNull)HEAP8[end]=lastChar}Module["writeStringToMemory"]=writeStringToMemory;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}Module["writeArrayToMemory"]=writeArrayToMemory;function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;++i){HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;if(typeof Atomics!=="undefined"&&!Atomics["exchange"]){Atomics["exchange"]=(function(heap,index,val){var oldVal,oldVal2;do{oldVal=Atomics["load"](heap,index);oldVal2=Atomics["compareExchange"](heap,index,oldVal,val)}while(oldVal!=oldVal2);return oldVal})}if(!Math["imul"]||Math["imul"](4294967295,5)!==-5)Math["imul"]=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};Math.imul=Math["imul"];if(!Math["clz32"])Math["clz32"]=(function(x){x=x>>>0;for(var i=0;i<32;i++){if(x&1<<31-i)return i}return 32});Math.clz32=Math["clz32"];if(!Math["trunc"])Math["trunc"]=(function(x){return x<0?Math.ceil(x):Math.floor(x)});Math.trunc=Math["trunc"];var Math_abs=Math.abs;var Math_cos=Math.cos;var Math_sin=Math.sin;var Math_tan=Math.tan;var Math_acos=Math.acos;var Math_asin=Math.asin;var Math_atan=Math.atan;var Math_atan2=Math.atan2;var Math_exp=Math.exp;var Math_log=Math.log;var Math_sqrt=Math.sqrt;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_pow=Math.pow;var Math_imul=Math.imul;var Math_fround=Math.fround;var Math_round=Math.round;var Math_min=Math.min;var Math_clz32=Math.clz32;var Math_trunc=Math.trunc;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){assert(!ENVIRONMENT_IS_PTHREAD);runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}Module["addRunDependency"]=addRunDependency;function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["removeRunDependency"]=removeRunDependency;Module["preloadedImages"]={};Module["preloadedAudios"]={};if(!ENVIRONMENT_IS_PTHREAD)addOnPreRun((function(){if(typeof SharedArrayBuffer!=="undefined"){addRunDependency("pthreads");PThread.allocateUnusedWorkers(1,(function(){removeRunDependency("pthreads")}))}}));var ASM_CONSTS=[(function(){postMessage({cmd:"processQueuedMainThreadWork"})}),(function(){throw"Canceled!"})];function _emscripten_asm_const_v(code){return ASM_CONSTS[code]()}STATIC_BASE=Runtime.GLOBAL_BASE;STATICTOP=STATIC_BASE+39072;if(!ENVIRONMENT_IS_PTHREAD)__ATINIT__.push({func:(function(){___emscripten_pthread_data_constructor()})});if(!ENVIRONMENT_IS_PTHREAD){allocate([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,1,0,251,255,126,0,8,0,253,255,1,0,0,0,255,255,3,0,246,255,122,0,18,0,250,255,2,0,0,0,255,255,4,0,243,255,118,0,27,0,247,255,3,0,255,255,255,255,4,0,240,255,112,0,37,0,245,255,4,0,255,255,255,255,5,0,238,255,105,0,48,0,242,255,4,0,255,255,255,255,5,0,237,255,97,0,58,0,240,255,5,0,255,255,255,255,6,0,237,255,88,0,68,0,238,255,5,0,255,255,255,255,6,0,237,255,78,0,78,0,237,255,6,0,255,255,255,255,5,0,238,255,68,0,88,0,237,255,6,0,255,255,255,255,5,0,240,255,58,0,97,0,237,255,5,0,255,255,255,255,4,0,242,255,48,0,105,0,238,255,5,0,255,255,255,255,4,0,245,255,37,0,112,0,240,255,4,0,255,255,255,255,3,0,247,255,27,0,118,0,243,255,4,0,255,255,0,0,2,0,250,255,18,0,122,0,246,255,3,0,255,255,0,0,1,0,253,255,8,0,126,0,251,255,1,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,253,255,255,255,32,0,64,0,38,0,1,0,253,255,0,0,254,255,254,255,29,0,63,0,41,0,2,0,253,255,0,0,254,255,254,255,26,0,63,0,43,0,4,0,252,255,0,0,254,255,253,255,24,0,62,0,46,0,5,0,252,255,0,0,254,255,253,255,21,0,60,0,49,0,7,0,252,255,0,0,255,255,252,255,18,0,59,0,51,0,9,0,252,255,0,0,255,255,252,255,16,0,57,0,53,0,12,0,252,255,255,255,255,255,252,255,14,0,55,0,55,0,14,0,252,255,255,255,255,255,252,255,12,0,53,0,57,0,16,0,252,255,255,255,0,0,252,255,9,0,51,0,59,0,18,0,252,255,255,255,0,0,252,255,7,0,49,0,60,0,21,0,253,255,254,255,0,0,252,255,5,0,46,0,62,0,24,0,253,255,254,255,0,0,252,255,4,0,43,0,63,0,26,0,254,255,254,255,0,0,253,255,2,0,41,0,63,0,29,0,254,255,254,255,0,0,253,255,1,0,38,0,64,0,32,0,255,255,253,255,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,255,255,3,0,249,255,127,0,8,0,253,255,1,0,0,0,254,255,5,0,243,255,125,0,17,0,250,255,3,0,255,255,253,255,7,0,239,255,121,0,27,0,246,255,5,0,254,255,252,255,9,0,236,255,115,0,37,0,243,255,6,0,254,255,252,255,10,0,233,255,108,0,48,0,240,255,8,0,253,255,252,255,10,0,232,255,100,0,59,0,237,255,9,0,253,255,252,255,11,0,232,255,90,0,70,0,235,255,10,0,252,255,252,255,11,0,233,255,80,0,80,0,233,255,11,0,252,255,252,255,10,0,235,255,70,0,90,0,232,255,11,0,252,255,253,255,9,0,237,255,59,0,100,0,232,255,10,0,252,255,253,255,8,0,240,255,48,0,108,0,233,255,10,0,252,255,254,255,6,0,243,255,37,0,115,0,236,255,9,0,252,255,254,255,5,0,246,255,27,0,121,0,239,255,7,0,253,255,255,255,3,0,250,255,17,0,125,0,243,255,5,0,254,255,0,0,1,0,253,255,8,0,127,0,249,255,3,0,255,255,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,104,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,96,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,88,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,80,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,56,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,80,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,88,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,96,0,0,0,0,0,0,0,0,0,0,0,0,0,24,0,104,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,120,0,0,0,0,0,0,0,0,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1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,0,30,0,45,0,23,0,52,0,59,0,38,0,31,0,60,0,53,0,46,0,39,0,61,0,54,0,47,0,62,0,55,0,63,0,0,0,2,0,5,0,9,0,14,0,22,0,31,0,37,0,1,0,4,0,8,0,13,0,19,0,26,0,38,0,44,0,3,0,6,0,10,0,17,0,24,0,30,0,42,0,49,0,7,0,11,0,15,0,21,0,29,0,36,0,47,0,53,0,12,0,16,0,20,0,27,0,34,0,43,0,52,0,57,0,18,0,23,0,28,0,35,0,41,0,48,0,56,0,60,0,25,0,32,0,39,0,45,0,50,0,55,0,59,0,62,0,33,0,40,0,46,0,51,0,54,0,58,0,61,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,8,0,1,0,8,0,1,0,1,0,9,0,16,0,16,0,16,0,2,0,9,0,2,0,2,0,10,0,17,0,17,0,24,0,24,0,24,0,3,0,10,0,3,0,3,0,18,0,25,0,25,0,32,0,11,0,18,0,32,0,32,0,4,0,11,0,26,0,33,0,19,0,26,0,4,0,4,0,33,0,40,0,12,0,19,0,40,0,40,0,5,0,12,0,27,0,34,0,34,0,41,0,20,0,27,0,13,0,20,0,5,0,5,0,41,0,48,0,48,0,48,0,28,0,35,0,35,0,42,0,21,0,28,0,6,0,6,0,6,0,13,0,42,0,49,0,49,0,56,0,36,0,43,0,14,0,21,0,29,0,36,0,7,0,14,0,43,0,50,0,50,0,57,0,22,0,29,0,37,0,44,0,15,0,22,0,44,0,51,0,51,0,58,0,30,0,37,0,23,0,30,0,52,0,59,0,45,0,52,0,38,0,45,0,31,0,38,0,53,0,60,0,46,0,53,0,39,0,46,0,54,0,61,0,47,0,54,0,55,0,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,1,0,32,0,17,0,2,0,48,0,33,0,18,0,3,0,64,0,34,0,49,0,19,0,65,0,80,0,50,0,4,0,35,0,66,0,20,0,81,0,96,0,51,0,5,0,36,0,82,0,97,0,67,0,112,0,21,0,52,0,98,0,37,0,83,0,113,0,6,0,68,0,128,0,53,0,22,0,99,0,114,0,84,0,7,0,129,0,38,0,69,0,100,0,115,0,144,0,130,0,85,0,54,0,23,0,8,0,145,0,39,0,70,0,116,0,101,0,131,0,160,0,146,0,55,0,86,0,24,0,71,0,132,0,117,0,161,0,40,0,9,0,102,0,147,0,176,0,162,0,87,0,56,0,25,0,133,0,118,0,177,0,148,0,72,0,103,0,41,0,163,0,10,0,192,0,178,0,88,0,57,0,134,0,149,0,119,0,26,0,164,0,73,0,104,0,193,0,42,0,179,0,208,0,11,0,135,0,89,0,165,0,120,0,150,0,58,0,194,0,180,0,27,0,74,0,209,0,105,0,151,0,136,0,43,0,90,0,224,0,166,0,195,0,181,0,121,0,210,0,59,0,12,0,152,0,106,0,167,0,196,0,75,0,137,0,225,0,211,0,240,0,182,0,122,0,91,0,28,0,197,0,13,0,226,0,168,0,183,0,153,0,44,0,212,0,138,0,107,0,241,0,60,0,29,0,123,0,198,0,184,0,227,0,169,0,242,0,76,0,213,0,154,0,45,0,92,0,14,0,199,0,139,0,61,0,228,0,214,0,170,0,185,0,243,0,108,0,77,0,155,0,30,0,15,0,200,0,229,0,124,0,215,0,244,0,93,0,46,0,186,0,171,0,201,0,109,0,140,0,230,0,62,0,216,0,245,0,31,0,125,0,78,0,156,0,231,0,47,0,187,0,202,0,217,0,94,0,246,0,141,0,63,0,232,0,172,0,110,0,247,0,157,0,79,0,218,0,203,0,126,0,233,0,188,0,248,0,95,0,173,0,142,0,219,0,111,0,249,0,234,0,158,0,127,0,189,0,204,0,250,0,235,0,143,0,174,0,220,0,205,0,159,0,251,0,190,0,221,0,175,0,236,0,237,0,191,0,206,0,252,0,222,0,253,0,207,0,238,0,223,0,254,0,239,0,255,0,0,0,2,0,5,0,9,0,17,0,24,0,36,0,44,0,55,0,72,0,88,0,104,0,128,0,143,0,166,0,179,0,1,0,4,0,8,0,13,0,20,0,30,0,40,0,54,0,66,0,79,0,96,0,113,0,141,0,154,0,178,0,196,0,3,0,7,0,11,0,18,0,25,0,33,0,46,0,57,0,71,0,86,0,101,0,119,0,148,0,164,0,186,0,201,0,6,0,12,0,16,0,23,0,31,0,39,0,53,0,64,0,78,0,92,0,110,0,127,0,153,0,169,0,193,0,208,0,10,0,14,0,19,0,28,0,37,0,47,0,58,0,67,0,84,0,98,0,114,0,133,0,161,0,176,0,198,0,214,0,15,0,21,0,26,0,34,0,43,0,52,0,65,0,77,0,91,0,106,0,120,0,140,0,165,0,185,0,205,0,221,0,22,0,27,0,32,0,41,0,48,0,60,0,73,0,85,0,99,0,116,0,130,0,151,0,175,0,190,0,211,0,225,0,29,0,35,0,42,0,49,0,59,0,69,0,81,0,95,0,108,0,125,0,139,0,155,0,182,0,197,0,217,0,229,0,38,0,45,0,51,0,61,0,68,0,80,0,93,0,105,0,118,0,134,0,150,0,168,0,191,0,207,0,223,0,234,0,50,0,56,0,63,0,74,0,83,0,94,0,109,0,117,0,129,0,147,0,163,0,177,0,199,0,213,0,228,0,238,0,62,0,70,0,76,0,87,0,97,0,107,0,122,0,131,0,145,0,159,0,172,0,188,0,210,0,222,0,235,0,242,0,75,0,82,0,90,0,102,0,112,0,124,0,138,0,146,0,157,0,173,0,187,0,202,0,219,0,230,0,240,0,245,0,89,0,100,0,111,0,123,0,132,0,142,0,156,0,167,0,180,0,189,0,203,0,216,0,231,0,237,0,246,0,250,0,103,0,115,0,126,0,136,0,149,0,162,0,171,0,183,0,194,0,204,0,215,0,224,0,236,0,241,0,248,0,252,0,121,0,135,0,144,0,158,0,170,0,181,0,192,0,200,0,209,0,218,0,227,0,233,0,243,0,244,0,251,0,254,0,137,0,152,0,160,0,174,0,184,0,195,0,206,0,212,0,220,0,226,0,232,0,239,0,247,0,249,0,253,0,255,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,16,0,1,0,16,0,1,0,1,0,32,0,32,0,17,0,32,0,2,0,17,0,2,0,2,0,48,0,48,0,18,0,33,0,33,0,48,0,3,0,18,0,49,0,64,0,64,0,64,0,34,0,49,0,3,0,3,0,19,0,34,0,50,0,65,0,4,0,19,0,65,0,80,0,80,0,80,0,35,0,50,0,4,0,4,0,20,0,35,0,66,0,81,0,81,0,96,0,51,0,66,0,96,0,96,0,5,0,20,0,36,0,51,0,82,0,97,0,21,0,36,0,67,0,82,0,97,0,112,0,5,0,5,0,52,0,67,0,112,0,112,0,37,0,52,0,6,0,21,0,83,0,98,0,98,0,113,0,68,0,83,0,6,0,6,0,113,0,128,0,22,0,37,0,53,0,68,0,84,0,99,0,99,0,114,0,128,0,128,0,114,0,129,0,69,0,84,0,38,0,53,0,7,0,22,0,7,0,7,0,129,0,144,0,23,0,38,0,54,0,69,0,100,0,115,0,85,0,100,0,115,0,130,0,144,0,144,0,130,0,145,0,39,0,54,0,70,0,85,0,8,0,23,0,55,0,70,0,116,0,131,0,101,0,116,0,145,0,160,0,24,0,39,0,8,0,8,0,86,0,101,0,131,0,146,0,160,0,160,0,146,0,161,0,71,0,86,0,40,0,55,0,9,0,24,0,117,0,132,0,102,0,117,0,161,0,176,0,132,0,147,0,56,0,71,0,87,0,102,0,25,0,40,0,147,0,162,0,9,0,9,0,176,0,176,0,162,0,177,0,72,0,87,0,41,0,56,0,118,0,133,0,133,0,148,0,103,0,118,0,10,0,25,0,148,0,163,0,57,0,72,0,88,0,103,0,177,0,192,0,26,0,41,0,163,0,178,0,192,0,192,0,10,0,10,0,119,0,134,0,73,0,88,0,149,0,164,0,104,0,119,0,134,0,149,0,42,0,57,0,178,0,193,0,164,0,179,0,11,0,26,0,58,0,73,0,193,0,208,0,89,0,104,0,135,0,150,0,120,0,135,0,27,0,42,0,74,0,89,0,208,0,208,0,150,0,165,0,179,0,194,0,165,0,180,0,105,0,120,0,194,0,209,0,43,0,58,0,11,0,11,0,136,0,151,0,90,0,105,0,151,0,166,0,180,0,195,0,59,0,74,0,121,0,136,0,209,0,224,0,195,0,210,0,224,0,224,0,166,0,181,0,106,0,121,0,75,0,90,0,12,0,27,0,181,0,196,0,12,0,12,0,210,0,225,0,152,0,167,0,167,0,182,0,137,0,152,0,28,0,43,0,196,0,211,0,122,0,137,0,91,0,106,0,225,0,240,0,44,0,59,0,13,0,28,0,107,0,122,0,182,0,197,0,168,0,183,0,211,0,226,0,153,0,168,0,226,0,241,0,60,0,75,0,197,0,212,0,138,0,153,0,29,0,44,0,76,0,91,0,13,0,13,0,183,0,198,0,123,0,138,0,45,0,60,0,212,0,227,0,198,0,213,0,154,0,169,0,169,0,184,0,227,0,242,0,92,0,107,0,61,0,76,0,139,0,154,0,14,0,29,0,14,0,14,0,184,0,199,0,213,0,228,0,108,0,123,0,199,0,214,0,228,0,243,0,77,0,92,0,30,0,45,0,170,0,185,0,155,0,170,0,185,0,200,0,93,0,108,0,124,0,139,0,214,0,229,0,46,0,61,0,200,0,215,0,229,0,244,0,15,0,30,0,109,0,124,0,62,0,77,0,140,0,155,0,215,0,230,0,31,0,46,0,171,0,186,0,186,0,201,0,201,0,216,0,78,0,93,0,230,0,245,0,125,0,140,0,47,0,62,0,216,0,231,0,156,0,171,0,94,0,109,0,231,0,246,0,141,0,156,0,63,0,78,0,202,0,217,0,187,0,202,0,110,0,125,0,217,0,232,0,172,0,187,0,232,0,247,0,79,0,94,0,157,0,172,0,126,0,141,0,203,0,218,0,95,0,110,0,233,0,248,0,218,0,233,0,142,0,157,0,111,0,126,0,173,0,188,0,188,0,203,0,234,0,249,0,219,0,234,0,127,0,142,0,158,0,173,0,204,0,219,0,189,0,204,0,143,0,158,0,235,0,250,0,174,0,189,0,205,0,220,0,159,0,174,0,220,0,235,0,221,0,236,0,175,0,190,0,190,0,205,0,236,0,251,0,206,0,221,0,237,0,252,0,191,0,206,0,222,0,237,0,207,0,222,0,238,0,253,0,223,0,238,0,239,0,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,1,0,64,0,33,0,2,0,96,0,65,0,34,0,128,0,3,0,97,0,66,0,160,0,129,0,35,0,98,0,4,0,67,0,130,0,161,0,192,0,36,0,99,0,224,0,5,0,162,0,193,0,68,0,131,0,37,0,100,0,225,0,194,0,0,1,163,0,69,0,132,0,6,0,226,0,1,1,32,1,195,0,101,0,164,0,38,0,2,1,7,0,227,0,33,1,133,0,64,1,70,0,196,0,165,0,34,1,3,1,228,0,39,0,65,1,102,0,96,1,8,0,197,0,71,0,134,0,66,1,35,1,4,1,97,1,128,1,229,0,166,0,103,0,40,0,98,1,67,1,36,1,135,0,129,1,198,0,5,1,72,0,9,0,160,1,167,0,130,1,99,1,230,0,68,1,104,0,37,1,41,0,161,1,199,0,136,0,6,1,131,1,192,1,69,1,100,1,10,0,73,0,162,1,231,0,168,0,193,1,38,1,132,1,105,0,163,1,7,1,42,0,200,0,101,1,194,1,137,0,224,1,74,0,70,1,232,0,11,0,133,1,169,0,39,1,164,1,106,0,195,1,225,1,102,1,8,1,71,1,201,0,43,0,138,0,0,2,226,1,134,1,40,1,233,0,170,0,165,1,75,0,196,1,103,1,12,0,1,2,9,1,227,1,72,1,107,0,202,0,2,2,32,2,166,1,135,1,197,1,139,0,44,0,234,0,228,1,41,1,104,1,171,0,76,0,3,2,33,2,10,1,73,1,198,1,13,0,167,1,203,0,108,0,34,2,229,1,64,2,42,1,235,0,140,0,105,1,74,1,172,0,35,2,45,0,199,1,11,1,65,2,230,1,77,0,204,0,106,1,96,2,14,0,43,1,66,2,109,0,236,0,231,1,97,2,75,1,141,0,67,2,46,0,15,0,173,0,98,2,107,1,78,0,205,0,16,0,110,0,237,0,99,2,142,0,47,0,174,0,79,0,206,0,17,0,111,0,238,0,48,0,143,0,80,0,175,0,112,0,207,0,49,0,18,0,239,0,81,0,113,0,19,0,50,0,82,0,114,0,51,0,83,0,115,0,128,2,4,2,136,1,12,1,144,0,20,0,160,2,129,2,36,2,5,2,168,1,137,1,44,1,13,1,176,0,145,0,52,0,21,0,192,2,161,2,130,2,68,2,37,2,6,2,200,1,169,1,138,1,76,1,45,1,14,1,208,0,177,0,146,0,84,0,53,0,22,0,224,2,193,2,162,2,131,2,100,2,69,2,38,2,7,2,232,1,201,1,170,1,139,1,108,1,77,1,46,1,15,1,240,0,209,0,178,0,147,0,116,0,85,0,54,0,23,0,225,2,194,2,163,2,101,2,70,2,39,2,233,1,202,1,171,1,109,1,78,1,47,1,241,0,210,0,179,0,117,0,86,0,55,0,226,2,195,2,102,2,71,2,234,1,203,1,110,1,79,1,242,0,211,0,118,0,87,0,227,2,103,2,235,1,111,1,243,0,119,0,0,3,132,2,8,2,140,1,16,1,148,0,24,0,32,3,1,3,164,2,133,2,40,2,9,2,172,1,141,1,48,1,17,1,180,0,149,0,56,0,25,0,64,3,33,3,2,3,196,2,165,2,134,2,72,2,41,2,10,2,204,1,173,1,142,1,80,1,49,1,18,1,212,0,181,0,150,0,88,0,57,0,26,0,96,3,65,3,34,3,3,3,228,2,197,2,166,2,135,2,104,2,73,2,42,2,11,2,236,1,205,1,174,1,143,1,112,1,81,1,50,1,19,1,244,0,213,0,182,0,151,0,120,0,89,0,58,0,27,0,97,3,66,3,35,3,229,2,198,2,167,2,105,2,74,2,43,2,237,1,206,1,175,1,113,1,82,1,51,1,245,0,214,0,183,0,121,0,90,0,59,0,98,3,67,3,230,2,199,2,106,2,75,2,238,1,207,1,114,1,83,1,246,0,215,0,122,0,91,0,99,3,231,2,107,2,239,1,115,1,247,0,123,0,128,3,4,3,136,2,12,2,144,1,20,1,152,0,28,0,160,3,129,3,36,3,5,3,168,2,137,2,44,2,13,2,176,1,145,1,52,1,21,1,184,0,153,0,60,0,29,0,192,3,161,3,130,3,68,3,37,3,6,3,200,2,169,2,138,2,76,2,45,2,14,2,208,1,177,1,146,1,84,1,53,1,22,1,216,0,185,0,154,0,92,0,61,0,30,0,224,3,193,3,162,3,131,3,100,3,69,3,38,3,7,3,232,2,201,2,170,2,139,2,108,2,77,2,46,2,15,2,240,1,209,1,178,1,147,1,116,1,85,1,54,1,23,1,248,0,217,0,186,0,155,0,124,0,93,0,62,0,31,0,225,3,194,3,163,3,101,3,70,3,39,3,233,2,202,2,171,2,109,2,78,2,47,2,241,1,210,1,179,1,117,1,86,1,55,1,249,0,218,0,187,0,125,0,94,0,63,0,226,3,195,3,102,3,71,3,234,2,203,2,110,2,79,2,242,1,211,1,118,1,87,1,250,0,219,0,126,0,95,0,227,3,103,3,235,2,111,2,243,1,119,1,251,0,127,0,132,3,8,3,140,2,16,2,148,1,24,1,156,0,164,3,133,3,40,3,9,3,172,2,141,2,48,2,17,2,180,1,149,1,56,1,25,1,188,0,157,0,196,3,165,3,134,3,72,3,41,3,10,3,204,2,173,2,142,2,80,2,49,2,18,2,212,1,181,1,150,1,88,1,57,1,26,1,220,0,189,0,158,0,228,3,197,3,166,3,135,3,104,3,73,3,42,3,11,3,236,2,205,2,174,2,143,2,112,2,81,2,50,2,19,2,244,1,213,1,182,1,151,1,120,1,89,1,58,1,27,1,252,0,221,0,190,0,159,0,229,3,198,3,167,3,105,3,74,3,43,3,237,2,206,2,175,2,113,2,82,2,51,2,245,1,214,1,183,1,121,1,90,1,59,1,253,0,222,0,191,0,230,3,199,3,106,3,75,3,238,2,207,2,114,2,83,2,246,1,215,1,122,1,91,1,254,0,223,0,231,3,107,3,239,2,115,2,247,1,123,1,255,0,136,3,12,3,144,2,20,2,152,1,28,1,168,3,137,3,44,3,13,3,176,2,145,2,52,2,21,2,184,1,153,1,60,1,29,1,200,3,169,3,138,3,76,3,45,3,14,3,208,2,177,2,146,2,84,2,53,2,22,2,216,1,185,1,154,1,92,1,61,1,30,1,232,3,201,3,170,3,139,3,108,3,77,3,46,3,15,3,240,2,209,2,178,2,147,2,116,2,85,2,54,2,23,2,248,1,217,1,186,1,155,1,124,1,93,1,62,1,31,1,233,3,202,3,171,3,109,3,78,3,47,3,241,2,210,2,179,2,117,2,86,2,55,2,249,1,218,1,187,1,125,1,94,1,63,1,234,3,203,3,110,3,79,3,242,2,211,2,118,2,87,2,250,1,219,1,126,1,95,1,235,3,111,3,243,2,119,2,251,1,127,1,140,3,16,3,148,2,24,2,156,1,172,3,141,3,48,3,17,3,180,2,149,2,56,2,25,2,188,1,157,1,204,3,173,3,142,3,80,3,49,3,18,3,212,2,181,2,150,2,88,2,57,2,26,2,220,1,189,1,158,1,236,3,205,3,174,3,143,3,112,3,81,3,50,3,19,3,244,2,213,2,182,2,151,2,120,2,89,2,58,2,27,2,252,1,221,1,190,1,159,1,237,3,206,3,175,3,113,3,82,3,51,3,245,2,214,2,183,2,121,2,90,2,59,2,253,1,222,1,191,1,238,3,207,3,114,3,83,3,246,2,215,2,122,2,91,2,254,1,223,1,239,3,115,3,247,2,123,2,255,1,144,3,20,3,152,2,28,2,176,3,145,3,52,3,21,3,184,2,153,2,60,2,29,2,208,3,177,3,146,3,84,3,53,3,22,3,216,2,185,2,154,2,92,2,61,2,30,2,240,3,209,3,178,3,147,3,116,3,85,3,54,3,23,3,248,2,217,2,186,2,155,2,124,2,93,2,62,2,31,2,241,3,210,3,179,3,117,3,86,3,55,3,249,2,218,2,187,2,125,2,94,2,63,2,242,3,211,3,118,3,87,3,250,2,219,2,126,2,95,2,243,3,119,3,251,2,127,2,148,3,24,3,156,2,180,3,149,3,56,3,25,3,188,2,157,2,212,3,181,3,150,3,88,3,57,3,26,3,220,2,189,2,158,2,244,3,213,3,182,3,151,3,120,3,89,3,58,3,27,3,252,2,221,2,190,2,159,2,245,3,214,3,183,3,121,3,90,3,59,3,253,2,222,2,191,2,246,3,215,3,122,3,91,3,254,2,223,2,247,3,123,3,255,2,152,3,28,3,184,3,153,3,60,3,29,3,216,3,185,3,154,3,92,3,61,3,30,3,248,3,217,3,186,3,155,3,124,3,93,3,62,3,31,3,249,3,218,3,187,3,125,3,94,3,63,3,250,3,219,3,126,3,95,3,251,3,127,3,156,3,188,3,157,3,220,3,189,3,158,3,252,3,221,3,190,3,159,3,253,3,222,3,191,3,254,3,223,3,255,3,0,0,2,0,5,0,10,0,17,0,25,0,38,0,47,0,62,0,83,0,101,0,121,0,145,0,170,0,193,0,204,0,210,0,219,0,229,0,233,0,245,0,1,1,19,1,43,1,86,1,100,1,121,1,149,1,199,1,215,1,239,1,15,2,1,0,4,0,8,0,15,0,22,0,30,0,45,0,58,0,74,0,92,0,112,0,133,0,158,0,184,0,203,0,215,0,222,0,228,0,234,0,237,0,0,1,18,1,42,1,61,1,99,1,120,1,148,1,170,1,214,1,238,1,14,2,39,2,3,0,7,0,12,0,18,0,28,0,36,0,52,0,64,0,82,0,102,0,118,0,142,0,164,0,189,0,208,0,217,0,224,0,231,0,235,0,238,0,17,1,41,1,60,1,73,1,119,1,147,1,169,1,184,1,237,1,13,2,38,2,55,2,6,0,11,0,16,0,23,0,31,0,43,0,60,0,73,0,90,0,109,0,126,0,150,0,173,0,196,0,211,0,220,0,226,0,232,0,236,0,239,0,40,1,59,1,72,1,79,1,146,1,168,1,183,1,191,1,12,2,37,2,54,2,63,2,9,0,14,0,19,0,29,0,37,0,50,0,65,0,78,0,95,0,116,0,134,0,157,0,179,0,201,0,214,0,223,0,244,0,255,0,16,1,39,1,85,1,98,1,118,1,145,1,198,1,213,1,236,1,11,2,70,2,84,2,105,2,133,2,13,0,20,0,26,0,35,0,44,0,54,0,72,0,85,0,105,0,123,0,140,0,163,0,182,0,205,0,216,0,225,0,254,0,15,1,38,1,58,1,97,1,117,1,144,1,167,1,212,1,235,1,10,2,36,2,83,2,104,2,132,2,154,2,21,0,27,0,33,0,42,0,53,0,63,0,80,0,94,0,113,0,132,0,151,0,172,0,190,0,209,0,218,0,227,0,14,1,37,1,57,1,71,1,116,1,143,1,166,1,182,1,234,1,9,2,35,2,53,2,103,2,131,2,153,2,168,2,24,0,32,0,39,0,48,0,57,0,71,0,88,0,104,0,120,0,139,0,159,0,178,0,197,0,212,0,221,0,230,0,36,1,56,1,70,1,78,1,142,1,165,1,181,1,190,1,8,2,34,2,52,2,62,2,130,2,152,2,167,2,175,2,34,0,40,0,46,0,56,0,68,0,81,0,96,0,111,0,130,0,147,0,167,0,186,0,243,0,253,0,13,1,35,1,84,1,96,1,115,1,141,1,197,1,211,1,233,1,7,2,69,2,82,2,102,2,129,2,181,2,193,2,211,2,235,2,41,0,49,0,55,0,67,0,77,0,91,0,107,0,124,0,138,0,161,0,177,0,194,0,252,0,12,1,34,1,55,1,95,1,114,1,140,1,164,1,210,1,232,1,6,2,33,2,81,2,101,2,128,2,151,2,192,2,210,2,234,2,253,2,51,0,59,0,66,0,76,0,89,0,99,0,119,0,131,0,149,0,168,0,181,0,200,0,11,1,33,1,54,1,69,1,113,1,139,1,163,1,180,1,231,1,5,2,32,2,51,2,100,2,127,2,150,2,166,2,209,2,233,2,252,2,9,3,61,0,69,0,75,0,87,0,100,0,114,0,129,0,144,0,162,0,180,0,191,0,207,0,32,1,53,1,68,1,77,1,138,1,162,1,179,1,189,1,4,2,31,2,50,2,61,2,126,2,149,2,165,2,174,2,232,2,251,2,8,3,15,3,70,0,79,0,86,0,97,0,108,0,122,0,137,0,155,0,242,0,251,0,10,1,31,1,83,1,94,1,112,1,137,1,196,1,209,1,230,1,3,2,68,2,80,2,99,2,125,2,180,2,191,2,208,2,231,2,20,3,30,3,45,3,65,3,84,0,93,0,103,0,110,0,125,0,141,0,154,0,171,0,250,0,9,1,30,1,52,1,93,1,111,1,136,1,161,1,208,1,229,1,2,2,30,2,79,2,98,2,124,2,148,2,190,2,207,2,230,2,250,2,29,3,44,3,64,3,80,3,98,0,106,0,115,0,127,0,143,0,156,0,169,0,185,0,8,1,29,1,51,1,67,1,110,1,135,1,160,1,178,1,228,1,1,2,29,2,49,2,97,2,123,2,147,2,164,2,206,2,229,2,249,2,7,3,43,3,63,3,79,3,90,3,117,0,128,0,136,0,148,0,160,0,175,0,188,0,198,0,28,1,50,1,66,1,76,1,134,1,159,1,177,1,188,1,0,2,28,2,48,2,60,2,122,2,146,2,163,2,173,2,228,2,248,2,6,3,14,3,62,3,78,3,89,3,95,3,135,0,146,0,152,0,165,0,241,0,249,0,7,1,27,1,82,1,92,1,109,1,133,1,195,1,207,1,227,1,255,1,67,2,78,2,96,2,121,2,179,2,189,2,205,2,227,2,19,3,28,3,42,3,61,3,99,3,107,3,119,3,135,3,153,0,166,0,174,0,183,0,248,0,6,1,26,1,49,1,91,1,108,1,132,1,158,1,206,1,226,1,254,1,27,2,77,2,95,2,120,2,145,2,188,2,204,2,226,2,247,2,27,3,41,3,60,3,77,3,106,3,118,3,134,3,147,3,176,0,187,0,195,0,202,0,5,1,25,1,48,1,65,1,107,1,131,1,157,1,176,1,225,1,253,1,26,2,47,2,94,2,119,2,144,2,162,2,203,2,225,2,246,2,5,3,40,3,59,3,76,3,88,3,117,3,133,3,146,3,155,3,192,0,199,0,206,0,213,0,24,1,47,1,64,1,75,1,130,1,156,1,175,1,187,1,252,1,25,2,46,2,59,2,118,2,143,2,161,2,172,2,224,2,245,2,4,3,13,3,58,3,75,3,87,3,94,3,132,3,145,3,154,3,159,3,240,0,247,0,4,1,23,1,81,1,90,1,106,1,129,1,194,1,205,1,224,1,251,1,66,2,76,2,93,2,117,2,178,2,187,2,202,2,223,2,18,3,26,3,39,3,57,3,98,3,105,3,116,3,131,3,162,3,168,3,177,3,189,3,246,0,3,1,22,1,46,1,89,1,105,1,128,1,155,1,204,1,223,1,250,1,24,2,75,2,92,2,116,2,142,2,186,2,201,2,222,2,244,2,25,3,38,3,56,3,74,3,104,3,115,3,130,3,144,3,167,3,176,3,188,3,198,3,2,1,21,1,45,1,63,1,104,1,127,1,154,1,174,1,222,1,249,1,23,2,45,2,91,2,115,2,141,2,160,2,200,2,221,2,243,2,3,3,37,3,55,3,73,3,86,3,114,3,129,3,143,3,153,3,175,3,187,3,197,3,204,3,20,1,44,1,62,1,74,1,126,1,153,1,173,1,186,1,248,1,22,2,44,2,58,2,114,2,140,2,159,2,171,2,220,2,242,2,2,3,12,3,54,3,72,3,85,3,93,3,128,3,142,3,152,3,158,3,186,3,196,3,203,3,207,3,80,1,88,1,103,1,125,1,193,1,203,1,221,1,247,1,65,2,74,2,90,2,113,2,177,2,185,2,199,2,219,2,17,3,24,3,36,3,53,3,97,3,103,3,113,3,127,3,161,3,166,3,174,3,185,3,209,3,213,3,219,3,227,3,87,1,102,1,124,1,152,1,202,1,220,1,246,1,21,2,73,2,89,2,112,2,139,2,184,2,198,2,218,2,241,2,23,3,35,3,52,3,71,3,102,3,112,3,126,3,141,3,165,3,173,3,184,3,195,3,212,3,218,3,226,3,233,3,101,1,123,1,151,1,172,1,219,1,245,1,20,2,43,2,88,2,111,2,138,2,158,2,197,2,217,2,240,2,1,3,34,3,51,3,70,3,84,3,111,3,125,3,140,3,151,3,172,3,183,3,194,3,202,3,217,3,225,3,232,3,237,3,122,1,150,1,171,1,185,1,244,1,19,2,42,2,57,2,110,2,137,2,157,2,170,2,216,2,239,2,0,3,11,3,50,3,69,3,83,3,92,3,124,3,139,3,150,3,157,3,182,3,193,3,201,3,206,3,224,3,231,3,236,3,239,3,192,1,201,1,218,1,243,1,64,2,72,2,87,2,109,2,176,2,183,2,196,2,215,2,16,3,22,3,33,3,49,3,96,3,101,3,110,3,123,3,160,3,164,3,171,3,181,3,208,3,211,3,216,3,223,3,240,3,242,3,245,3,249,3,200,1,217,1,242,1,18,2,71,2,86,2,108,2,136,2,182,2,195,2,214,2,238,2,21,3,32,3,48,3,68,3,100,3,109,3,122,3,138,3,163,3,170,3,180,3,192,3,210,3,215,3,222,3,230,3,241,3,244,3,248,3,252,3,216,1,241,1,17,2,41,2,85,2,107,2,135,2,156,2,194,2,213,2,237,2,255,2,31,3,47,3,67,3,82,3,108,3,121,3,137,3,149,3,169,3,179,3,191,3,200,3,214,3,221,3,229,3,235,3,243,3,247,3,251,3,254,3,240,1,16,2,40,2,56,2,106,2,134,2,155,2,169,2,212,2,236,2,254,2,10,3,46,3,66,3,81,3,91,3,120,3,136,3,148,3,156,3,178,3,190,3,199,3,205,3,220,3,228,3,234,3,238,3,246,3,250,3,253,3,255,3,0,0,0,0,0,0,0,0,0,0,0,0,32,0,32,0,1,0,32,0,1,0,1,0,64,0,64,0,33,0,64,0,2,0,33,0,96,0,96,0,2,0,2,0,65,0,96,0,34,0,65,0,128,0,128,0,97,0,128,0,3,0,34,0,66,0,97,0,3,0,3,0,35,0,66,0,98,0,129,0,129,0,160,0,160,0,160,0,4,0,35,0,67,0,98,0,192,0,192,0,4,0,4,0,130,0,161,0,161,0,192,0,36,0,67,0,99,0,130,0,5,0,36,0,68,0,99,0,193,0,224,0,162,0,193,0,224,0,224,0,131,0,162,0,37,0,68,0,100,0,131,0,5,0,5,0,194,0,225,0,225,0,0,1,0,1,0,1,163,0,194,0,69,0,100,0,132,0,163,0,6,0,37,0,226,0,1,1,6,0,6,0,195,0,226,0,1,1,32,1,101,0,132,0,32,1,32,1,38,0,69,0,164,0,195,0,133,0,164,0,2,1,33,1,227,0,2,1,196,0,227,0,7,0,38,0,33,1,64,1,70,0,101,0,64,1,64,1,7,0,7,0,165,0,196,0,39,0,70,0,102,0,133,0,34,1,65,1,3,1,34,1,228,0,3,1,65,1,96,1,96,1,96,1,197,0,228,0,134,0,165,0,71,0,102,0,8,0,39,0,66,1,97,1,35,1,66,1,4,1,35,1,103,0,134,0,97,1,128,1,166,0,197,0,229,0,4,1,40,0,71,0,8,0,8,0,128,1,128,1,135,0,166,0,98,1,129,1,67,1,98,1,198,0,229,0,36,1,67,1,72,0,103,0,5,1,36,1,9,0,40,0,129,1,160,1,167,0,198,0,104,0,135,0,230,0,5,1,99,1,130,1,160,1,160,1,37,1,68,1,68,1,99,1,9,0,9,0,41,0,72,0,130,1,161,1,199,0,230,0,136,0,167,0,161,1,192,1,6,1,37,1,100,1,131,1,73,0,104,0,131,1,162,1,231,0,6,1,10,0,41,0,168,0,199,0,69,1,100,1,162,1,193,1,105,0,136,0,192,1,192,1,42,0,73,0,38,1,69,1,200,0,231,0,10,0,10,0,101,1,132,1,137,0,168,0,7,1,38,1,132,1,163,1,74,0,105,0,163,1,194,1,193,1,224,1,70,1,101,1,232,0,7,1,39,1,70,1,169,0,200,0,11,0,42,0,106,0,137,0,224,1,224,1,194,1,225,1,102,1,133,1,8,1,39,1,201,0,232,0,138,0,169,0,133,1,164,1,43,0,74,0,164,1,195,1,71,1,102,1,11,0,11,0,225,1,0,2,233,0,8,1,195,1,226,1,40,1,71,1,75,0,106,0,170,0,201,0,226,1,1,2,0,2,0,2,134,1,165,1,103,1,134,1,165,1,196,1,107,0,138,0,12,0,43,0,202,0,233,0,196,1,227,1,9,1,40,1,72,1,103,1,139,0,170,0,44,0,75,0,227,1,2,2,1,2,32,2,234,0,9,1,41,1,72,1,166,1,197,1,12,0,12,0,135,1,166,1,171,0,202,0,76,0,107,0,2,2,33,2,197,1,228,1,32,2,32,2,10,1,41,1,203,0,234,0,108,0,139,0,73,1,104,1,42,1,73,1,140,0,171,0,3,2,34,2,13,0,44,0,167,1,198,1],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);allocate([235,0,10,1,33,2,64,2,198,1,229,1,45,0,76,0,172,0,203,0,74,1,105,1,64,2,64,2,13,0,13,0,11,1,42,1,34,2,65,2,77,0,108,0,204,0,235,0,199,1,230,1,65,2,96,2,43,1,74,1,109,0,140,0,35,2,66,2,14,0,45,0,14,0,14,0,141,0,172,0,66,2,97,2,75,1,106,1,46,0,77,0,173,0,204,0,15,0,15,0,78,0,109,0,205,0,236,0,67,2,98,2,110,0,141,0,15,0,46,0,142,0,173,0,47,0,78,0,174,0,205,0,16,0,16,0,79,0,110,0,206,0,237,0,16,0,47,0,111,0,142,0,48,0,79,0,143,0,174,0,80,0,111,0,175,0,206,0,17,0,48,0,17,0,17,0,207,0,238,0,49,0,80,0,81,0,112,0,18,0,18,0,18,0,49,0,50,0,81,0,82,0,113,0,19,0,50,0,51,0,82,0,83,0,114,0,96,2,96,2,228,1,3,2,104,1,135,1,236,0,11,1,112,0,143,0,19,0,19,0,128,2,128,2,97,2,128,2,4,2,35,2,229,1,4,2,136,1,167,1,105,1,136,1,12,1,43,1,237,0,12,1,144,0,175,0,113,0,144,0,20,0,51,0,20,0,20,0,160,2,160,2,129,2,160,2,98,2,129,2,36,2,67,2,5,2,36,2,230,1,5,2,168,1,199,1,137,1,168,1,106,1,137,1,44,1,75,1,13,1,44,1,238,0,13,1,176,0,207,0,145,0,176,0,114,0,145,0,52,0,83,0,21,0,52,0,21,0,21,0,192,2,192,2,161,2,192,2,130,2,161,2,99,2,130,2,68,2,99,2,37,2,68,2,6,2,37,2,231,1,6,2,200,1,231,1,169,1,200,1,138,1,169,1,107,1,138,1,76,1,107,1,45,1,76,1,14,1,45,1,239,0,14,1,208,0,239,0,177,0,208,0,146,0,177,0,115,0,146,0,84,0,115,0,53,0,84,0,22,0,53,0,22,0,22,0,193,2,224,2,162,2,193,2,131,2,162,2,69,2,100,2,38,2,69,2,7,2,38,2,201,1,232,1,170,1,201,1,139,1,170,1,77,1,108,1,46,1,77,1,15,1,46,1,209,0,240,0,178,0,209,0,147,0,178,0,85,0,116,0,54,0,85,0,23,0,54,0,194,2,225,2,163,2,194,2,70,2,101,2,39,2,70,2,202,1,233,1,171,1,202,1,78,1,109,1,47,1,78,1,210,0,241,0,179,0,210,0,86,0,117,0,55,0,86,0,195,2,226,2,71,2,102,2,203,1,234,1,79,1,110,1,211,0,242,0,87,0,118,0,224,2,224,2,100,2,131,2,232,1,7,2,108,1,139,1,240,0,15,1,116,0,147,0,23,0,23,0,0,3,0,3,225,2,0,3,132,2,163,2,101,2,132,2,8,2,39,2,233,1,8,2,140,1,171,1,109,1,140,1,16,1,47,1,241,0,16,1,148,0,179,0,117,0,148,0,24,0,55,0,24,0,24,0,32,3,32,3,1,3,32,3,226,2,1,3,164,2,195,2,133,2,164,2,102,2,133,2,40,2,71,2,9,2,40,2,234,1,9,2,172,1,203,1,141,1,172,1,110,1,141,1,48,1,79,1,17,1,48,1,242,0,17,1,180,0,211,0,149,0,180,0,118,0,149,0,56,0,87,0,25,0,56,0,25,0,25,0,64,3,64,3,33,3,64,3,2,3,33,3,227,2,2,3,196,2,227,2,165,2,196,2,134,2,165,2,103,2,134,2,72,2,103,2,41,2,72,2,10,2,41,2,235,1,10,2,204,1,235,1,173,1,204,1,142,1,173,1,111,1,142,1,80,1,111,1,49,1,80,1,18,1,49,1,243,0,18,1,212,0,243,0,181,0,212,0,150,0,181,0,119,0,150,0,88,0,119,0,57,0,88,0,26,0,57,0,26,0,26,0,65,3,96,3,34,3,65,3,3,3,34,3,197,2,228,2,166,2,197,2,135,2,166,2,73,2,104,2,42,2,73,2,11,2,42,2,205,1,236,1,174,1,205,1,143,1,174,1,81,1,112,1,50,1,81,1,19,1,50,1,213,0,244,0,182,0,213,0,151,0,182,0,89,0,120,0,58,0,89,0,27,0,58,0,66,3,97,3,35,3,66,3,198,2,229,2,167,2,198,2,74,2,105,2,43,2,74,2,206,1,237,1,175,1,206,1,82,1,113,1,51,1,82,1,214,0,245,0,183,0,214,0,90,0,121,0,59,0,90,0,67,3,98,3,199,2,230,2,75,2,106,2,207,1,238,1,83,1,114,1,215,0,246,0,91,0,122,0,96,3,96,3,228,2,3,3,104,2,135,2,236,1,11,2,112,1,143,1,244,0,19,1,120,0,151,0,27,0,27,0,128,3,128,3,97,3,128,3,4,3,35,3,229,2,4,3,136,2,167,2,105,2,136,2,12,2,43,2,237,1,12,2,144,1,175,1,113,1,144,1,20,1,51,1,245,0,20,1,152,0,183,0,121,0,152,0,28,0,59,0,28,0,28,0,160,3,160,3,129,3,160,3,98,3,129,3,36,3,67,3,5,3,36,3,230,2,5,3,168,2,199,2,137,2,168,2,106,2,137,2,44,2,75,2,13,2,44,2,238,1,13,2,176,1,207,1,145,1,176,1,114,1,145,1,52,1,83,1,21,1,52,1,246,0,21,1,184,0,215,0,153,0,184,0,122,0,153,0,60,0,91,0,29,0,60,0,29,0,29,0,192,3,192,3,161,3,192,3,130,3,161,3,99,3,130,3,68,3,99,3,37,3,68,3,6,3,37,3,231,2,6,3,200,2,231,2,169,2,200,2,138,2,169,2,107,2,138,2,76,2,107,2,45,2,76,2,14,2,45,2,239,1,14,2,208,1,239,1,177,1,208,1,146,1,177,1,115,1,146,1,84,1,115,1,53,1,84,1,22,1,53,1,247,0,22,1,216,0,247,0,185,0,216,0,154,0,185,0,123,0,154,0,92,0,123,0,61,0,92,0,30,0,61,0,30,0,30,0,193,3,224,3,162,3,193,3,131,3,162,3,69,3,100,3,38,3,69,3,7,3,38,3,201,2,232,2,170,2,201,2,139,2,170,2,77,2,108,2,46,2,77,2,15,2,46,2,209,1,240,1,178,1,209,1,147,1,178,1,85,1,116,1,54,1,85,1,23,1,54,1,217,0,248,0,186,0,217,0,155,0,186,0,93,0,124,0,62,0,93,0,31,0,62,0,194,3,225,3,163,3,194,3,70,3,101,3,39,3,70,3,202,2,233,2,171,2,202,2,78,2,109,2,47,2,78,2,210,1,241,1,179,1,210,1,86,1,117,1,55,1,86,1,218,0,249,0,187,0,218,0,94,0,125,0,63,0,94,0,195,3,226,3,71,3,102,3,203,2,234,2,79,2,110,2,211,1,242,1,87,1,118,1,219,0,250,0,95,0,126,0,100,3,131,3,232,2,7,3,108,2,139,2,240,1,15,2,116,1,147,1,248,0,23,1,124,0,155,0,132,3,163,3,101,3,132,3,8,3,39,3,233,2,8,3,140,2,171,2,109,2,140,2,16,2,47,2,241,1,16,2,148,1,179,1,117,1,148,1,24,1,55,1,249,0,24,1,156,0,187,0,125,0,156,0,164,3,195,3,133,3,164,3,102,3,133,3,40,3,71,3,9,3,40,3,234,2,9,3,172,2,203,2,141,2,172,2,110,2,141,2,48,2,79,2,17,2,48,2,242,1,17,2,180,1,211,1,149,1,180,1,118,1,149,1,56,1,87,1,25,1,56,1,250,0,25,1,188,0,219,0,157,0,188,0,126,0,157,0,196,3,227,3,165,3,196,3,134,3,165,3,103,3,134,3,72,3,103,3,41,3,72,3,10,3,41,3,235,2,10,3,204,2,235,2,173,2,204,2,142,2,173,2,111,2,142,2,80,2,111,2,49,2,80,2,18,2,49,2,243,1,18,2,212,1,243,1,181,1,212,1,150,1,181,1,119,1,150,1,88,1,119,1,57,1,88,1,26,1,57,1,251,0,26,1,220,0,251,0,189,0,220,0,158,0,189,0,127,0,158,0,197,3,228,3,166,3,197,3,135,3,166,3,73,3,104,3,42,3,73,3,11,3,42,3,205,2,236,2,174,2,205,2,143,2,174,2,81,2,112,2,50,2,81,2,19,2,50,2,213,1,244,1,182,1,213,1,151,1,182,1,89,1,120,1,58,1,89,1,27,1,58,1,221,0,252,0,190,0,221,0,159,0,190,0,198,3,229,3,167,3,198,3,74,3,105,3,43,3,74,3,206,2,237,2,175,2,206,2,82,2,113,2,51,2,82,2,214,1,245,1,183,1,214,1,90,1,121,1,59,1,90,1,222,0,253,0,191,0,222,0,199,3,230,3,75,3,106,3,207,2,238,2,83,2,114,2,215,1,246,1,91,1,122,1,223,0,254,0,104,3,135,3,236,2,11,3,112,2,143,2,244,1,19,2,120,1,151,1,252,0,27,1,136,3,167,3,105,3,136,3,12,3,43,3,237,2,12,3,144,2,175,2,113,2,144,2,20,2,51,2,245,1,20,2,152,1,183,1,121,1,152,1,28,1,59,1,253,0,28,1,168,3,199,3,137,3,168,3,106,3,137,3,44,3,75,3,13,3,44,3,238,2,13,3,176,2,207,2,145,2,176,2,114,2,145,2,52,2,83,2,21,2,52,2,246,1,21,2,184,1,215,1,153,1,184,1,122,1,153,1,60,1,91,1,29,1,60,1,254,0,29,1,200,3,231,3,169,3,200,3,138,3,169,3,107,3,138,3,76,3,107,3,45,3,76,3,14,3,45,3,239,2,14,3,208,2,239,2,177,2,208,2,146,2,177,2,115,2,146,2,84,2,115,2,53,2,84,2,22,2,53,2,247,1,22,2,216,1,247,1,185,1,216,1,154,1,185,1,123,1,154,1,92,1,123,1,61,1,92,1,30,1,61,1,255,0,30,1,201,3,232,3,170,3,201,3,139,3,170,3,77,3,108,3,46,3,77,3,15,3,46,3,209,2,240,2,178,2,209,2,147,2,178,2,85,2,116,2,54,2,85,2,23,2,54,2,217,1,248,1,186,1,217,1,155,1,186,1,93,1,124,1,62,1,93,1,31,1,62,1,202,3,233,3,171,3,202,3,78,3,109,3,47,3,78,3,210,2,241,2,179,2,210,2,86,2,117,2,55,2,86,2,218,1,249,1,187,1,218,1,94,1,125,1,63,1,94,1,203,3,234,3,79,3,110,3,211,2,242,2,87,2,118,2,219,1,250,1,95,1,126,1,108,3,139,3,240,2,15,3,116,2,147,2,248,1,23,2,124,1,155,1,140,3,171,3,109,3,140,3,16,3,47,3,241,2,16,3,148,2,179,2,117,2,148,2,24,2,55,2,249,1,24,2,156,1,187,1,125,1,156,1,172,3,203,3,141,3,172,3,110,3,141,3,48,3,79,3,17,3,48,3,242,2,17,3,180,2,211,2,149,2,180,2,118,2,149,2,56,2,87,2,25,2,56,2,250,1,25,2,188,1,219,1,157,1,188,1,126,1,157,1,204,3,235,3,173,3,204,3,142,3,173,3,111,3,142,3,80,3,111,3,49,3,80,3,18,3,49,3,243,2,18,3,212,2,243,2,181,2,212,2,150,2,181,2,119,2,150,2,88,2,119,2,57,2,88,2,26,2,57,2,251,1,26,2,220,1,251,1,189,1,220,1,158,1,189,1,127,1,158,1,205,3,236,3,174,3,205,3,143,3,174,3,81,3,112,3,50,3,81,3,19,3,50,3,213,2,244,2,182,2,213,2,151,2,182,2,89,2,120,2,58,2,89,2,27,2,58,2,221,1,252,1,190,1,221,1,159,1,190,1,206,3,237,3,175,3,206,3,82,3,113,3,51,3,82,3,214,2,245,2,183,2,214,2,90,2,121,2,59,2,90,2,222,1,253,1,191,1,222,1,207,3,238,3,83,3,114,3,215,2,246,2,91,2,122,2,223,1,254,1,112,3,143,3,244,2,19,3,120,2,151,2,252,1,27,2,144,3,175,3,113,3,144,3,20,3,51,3,245,2,20,3,152,2,183,2,121,2,152,2,28,2,59,2,253,1,28,2,176,3,207,3,145,3,176,3,114,3,145,3,52,3,83,3,21,3,52,3,246,2,21,3,184,2,215,2,153,2,184,2,122,2,153,2,60,2,91,2,29,2,60,2,254,1,29,2,208,3,239,3,177,3,208,3,146,3,177,3,115,3,146,3,84,3,115,3,53,3,84,3,22,3,53,3,247,2,22,3,216,2,247,2,185,2,216,2,154,2,185,2,123,2,154,2,92,2,123,2,61,2,92,2,30,2,61,2,255,1,30,2,209,3,240,3,178,3,209,3,147,3,178,3,85,3,116,3,54,3,85,3,23,3,54,3,217,2,248,2,186,2,217,2,155,2,186,2,93,2,124,2,62,2,93,2,31,2,62,2,210,3,241,3,179,3,210,3,86,3,117,3,55,3,86,3,218,2,249,2,187,2,218,2,94,2,125,2,63,2,94,2,211,3,242,3,87,3,118,3,219,2,250,2,95,2,126,2,116,3,147,3,248,2,23,3,124,2,155,2,148,3,179,3,117,3,148,3,24,3,55,3,249,2,24,3,156,2,187,2,125,2,156,2,180,3,211,3,149,3,180,3,118,3,149,3,56,3,87,3,25,3,56,3,250,2,25,3,188,2,219,2,157,2,188,2,126,2,157,2,212,3,243,3,181,3,212,3,150,3,181,3,119,3,150,3,88,3,119,3,57,3,88,3,26,3,57,3,251,2,26,3,220,2,251,2,189,2,220,2,158,2,189,2,127,2,158,2,213,3,244,3,182,3,213,3,151,3,182,3,89,3,120,3,58,3,89,3,27,3,58,3,221,2,252,2,190,2,221,2,159,2,190,2,214,3,245,3,183,3,214,3,90,3,121,3,59,3,90,3,222,2,253,2,191,2,222,2,215,3,246,3,91,3,122,3,223,2,254,2,120,3,151,3,252,2,27,3,152,3,183,3,121,3,152,3,28,3,59,3,253,2,28,3,184,3,215,3,153,3,184,3,122,3,153,3,60,3,91,3,29,3,60,3,254,2,29,3,216,3,247,3,185,3,216,3,154,3,185,3,123,3,154,3,92,3,123,3,61,3,92,3,30,3,61,3,255,2,30,3,217,3,248,3,186,3,217,3,155,3,186,3,93,3,124,3,62,3,93,3,31,3,62,3,218,3,249,3,187,3,218,3,94,3,125,3,63,3,94,3,219,3,250,3,95,3,126,3,124,3,155,3,156,3,187,3,125,3,156,3,188,3,219,3,157,3,188,3,126,3,157,3,220,3,251,3,189,3,220,3,158,3,189,3,127,3,158,3,221,3,252,3,190,3,221,3,159,3,190,3,222,3,253,3,191,3,222,3,223,3,254,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,4,0,2,0,5,0,3,0,6,0,8,0,9,0,7,0,12,0,10,0,13,0,11,0,14,0,15,0,0,0,1,0,3,0,5,0,2,0,4,0,6,0,9,0,7,0,8,0,11,0,13,0,10,0,12,0,14,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,4,0,4,0,2,0,2,0,5,0,5,0,4,0,4,0,8,0,8,0,6,0,6,0,8,0,8,0,9,0,9,0,12,0,12,0,10,0,10,0,13,0,13,0,14,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,8,0,1,0,12,0,5,0,9,0,2,0,13,0,6,0,10,0,3,0,7,0,14,0,11,0,15,0,0,0,3,0,7,0,11,0,1,0,5,0,9,0,12,0,2,0,6,0,10,0,14,0,4,0,8,0,13,0,15,0,0,0,0,0,0,0,0,0,4,0,4,0,0,0,0,0,8,0,8,0,1,0,1,0,5,0,5,0,1,0,1,0,9,0,9,0,2,0,2,0,6,0,6,0,2,0,2,0,3,0,3,0,10,0,10,0,7,0,7,0,11,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,2,0,8,0,9,0,3,0,16,0,10,0,4,0,17,0,11,0,24,0,5,0,18,0,25,0,12,0,19,0,26,0,32,0,6,0,13,0,20,0,33,0,27,0,7,0,34,0,40,0,21,0,28,0,41,0,14,0,35,0,48,0,42,0,29,0,36,0,49,0,22,0,43,0,15,0,56,0,37,0,50,0,44,0,30,0,57,0,23,0,51,0,58,0,45,0,38,0,52,0,31,0,59,0,53,0,46,0,60,0,39,0,61,0,47,0,54,0,55,0,62,0,63,0,0,0,1,0,2,0,5,0,8,0,12,0,19,0,24,0,3,0,4,0,7,0,10,0,15,0,20,0,30,0,39,0,6,0,9,0,13,0,16,0,21,0,27,0,37,0,46,0,11,0,14,0,17,0,23,0,28,0,34,0,44,0,52,0,18,0,22,0,25,0,31,0,35,0,41,0,50,0,57,0,26,0,29,0,33,0,38,0,43,0,49,0,55,0,59,0,32,0,36,0,42,0,47,0,51,0,54,0,60,0,61,0,40,0,45,0,48,0,53,0,56,0,58,0,62,0,63,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,8,0,8,0,2,0,2,0,8,0,8,0,9,0,9,0,3,0,3,0,16,0,16,0,10,0,10,0,16,0,16,0,4,0,4,0,17,0,17,0,24,0,24,0,11,0,11,0,18,0,18,0,25,0,25,0,24,0,24,0,5,0,5,0,12,0,12,0,19,0,19,0,32,0,32,0,26,0,26,0,6,0,6,0,33,0,33,0,32,0,32,0,20,0,20,0,27,0,27,0,40,0,40,0,13,0,13,0,34,0,34,0,40,0,40,0,41,0,41,0,28,0,28,0,35,0,35,0,48,0,48,0,21,0,21,0,42,0,42,0,14,0,14,0,48,0,48,0,36,0,36,0,49,0,49,0,43,0,43,0,29,0,29,0,56,0,56,0,22,0,22,0,50,0,50,0,57,0,57,0,44,0,44,0,37,0,37,0,51,0,51,0,30,0,30,0,58,0,58,0,52,0,52,0,45,0,45,0,59,0,59,0,38,0,38,0,60,0,60,0,46,0,46,0,53,0,53,0,54,0,54,0,61,0,61,0,62,0,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,16,0,1,0,24,0,9,0,32,0,17,0,2,0,40,0,25,0,10,0,33,0,18,0,48,0,3,0,26,0,41,0,11,0,56,0,19,0,34,0,4,0,49,0,27,0,42,0,12,0,35,0,20,0,57,0,50,0,28,0,5,0,43,0,13,0,36,0,58,0,51,0,21,0,44,0,6,0,29,0,59,0,37,0,14,0,52,0,22,0,7,0,45,0,60,0,30,0,15,0,38,0,53,0,23,0,46,0,31,0,61,0,39,0,54,0,47,0,62,0,55,0,63,0,0,0,3,0,8,0,15,0,22,0,32,0,40,0,47,0,1,0,5,0,11,0,18,0,26,0,34,0,44,0,51,0,2,0,7,0,13,0,20,0,28,0,38,0,46,0,54,0,4,0,10,0,16,0,24,0,31,0,41,0,50,0,56,0,6,0,12,0,21,0,27,0,35,0,43,0,52,0,58,0,9,0,17,0,25,0,33,0,39,0,48,0,55,0,60,0,14,0,23,0,30,0,37,0,45,0,53,0,59,0,62,0,19,0,29,0,36,0,42,0,49,0,57,0,61,0,63,0,0,0,0,0,0,0,0,0,8,0,8,0,0,0,0,0,16,0,16,0,1,0,1,0,24,0,24,0,9,0,9,0,1,0,1,0,32,0,32,0,17,0,17,0,2,0,2,0,25,0,25,0,10,0,10,0,40,0,40,0,2,0,2,0,18,0,18,0,33,0,33,0,3,0,3,0,48,0,48,0,11,0,11,0,26,0,26,0,3,0,3,0,41,0,41,0,19,0,19,0,34,0,34,0,4,0,4,0,27,0,27,0,12,0,12,0,49,0,49,0,42,0,42,0,20,0,20,0,4,0,4,0,35,0,35,0,5,0,5,0,28,0,28,0,50,0,50,0,43,0,43,0,13,0,13,0,36,0,36,0,5,0,5,0,21,0,21,0,51,0,51,0,29,0,29,0,6,0,6,0,44,0,44,0,14,0,14,0,6,0,6,0,37,0,37,0,52,0,52,0,22,0,22,0,7,0,7,0,30,0,30,0,45,0,45,0,15,0,15,0,38,0,38,0,23,0,23,0,53,0,53,0,31,0,31,0,46,0,46,0,39,0,39,0,54,0,54,0,47,0,47,0,55,0,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,2,0,16,0,3,0,17,0,4,0,18,0,32,0,5,0,33,0,19,0,6,0,34,0,48,0,20,0,49,0,7,0,35,0,21,0,50,0,64,0,8,0,36,0,65,0,22,0,51,0,37,0,80,0,9,0,66,0,52,0,23,0,38,0,81,0,67,0,10,0,53,0,24,0,82,0,68,0,96,0,39,0,11,0,54,0,83,0,97,0,69,0,25,0,98,0,84,0,40,0,112,0,55,0,12,0,70,0,99,0,113,0,85,0,26,0,41,0,56,0,114,0,100,0,13,0,71,0,128,0,86,0,27,0,115,0,101,0,129,0,42,0,57,0,72,0,116,0,14,0,87,0,130,0,102,0,144,0,73,0,131,0,117,0,28,0,58,0,15,0,88,0,43,0,145,0,103,0,132,0,146,0,118,0,74,0,160,0,89,0,133,0,104,0,29,0,59,0,147,0,119,0,44,0,161,0,148,0,90,0,105,0,134,0,162,0,120,0,176,0,75,0,135,0,149,0,30,0,60,0,163,0,177,0,45,0,121,0,91,0,106,0,164,0,178,0,150,0,192,0,136,0,165,0,179,0,31,0,151,0,193,0,76,0,122,0,61,0,137,0,194,0,107,0,152,0,180,0,208,0,46,0,166,0,167,0,195,0,92,0,181,0,138,0,209,0,123,0,153,0,224,0,196,0,77,0,168,0,210,0,182,0,240,0,108,0,197,0,62,0,154,0,225,0,183,0,169,0,211,0,47,0,139,0,93,0,184,0,226,0,212,0,241,0,198,0,170,0,124,0,155,0,199,0,78,0,213,0,185,0,109,0,227,0,200,0,63,0,228,0,242,0,140,0,214,0,171,0,186,0,156,0,229,0,243,0,125,0,94,0,201,0,244,0,215,0,216,0,230,0,141,0,187,0,202,0,79,0,172,0,110,0,157,0,245,0,217,0,231,0,95,0,246,0,232,0,126,0,203,0,247,0,233,0,173,0,218,0,142,0,111,0,158,0,188,0,248,0,127,0,234,0,219,0,249,0,189,0,204,0,143,0,174,0,159,0,250,0,235,0,205,0,220,0,175,0,190,0,251,0,221,0,191,0,206,0,236,0,207,0,237,0,252,0,222,0,253,0,223,0,238,0,239,0,254,0,255,0,0,0,1,0,2,0,4,0,6,0,9,0,12,0,17,0,22,0,29,0,36,0,43,0,54,0,64,0,76,0,86,0,3,0,5,0,7,0,11,0,15,0,19,0,25,0,32,0,38,0,48,0,59,0,68,0,84,0,99,0,115,0,130,0,8,0,10,0,13,0,18,0,23,0,27,0,33,0,42,0,51,0,60,0,72,0,88,0,103,0,119,0,142,0,167,0,14,0,16,0,20,0,26,0,31,0,37,0,44,0,53,0,61,0,73,0,85,0,100,0,116,0,135,0,161,0,185,0,21,0,24,0,30,0,35,0,40,0,47,0,55,0,65,0,74,0,81,0,94,0,112,0,133,0,154,0,179,0,205,0,28,0,34,0,39,0,45,0,50,0,58,0,67,0,77,0,87,0,96,0,106,0,121,0,146,0,169,0,196,0,212,0,41,0,46,0,49,0,56,0,63,0,70,0,79,0,90,0,98,0,107,0,122,0,138,0,159,0,182,0,207,0,222,0,52,0,57,0,62,0,69,0,75,0,83,0,93,0,102,0,110,0,120,0,134,0,150,0,176,0,195,0,215,0,226,0,66,0,71,0,78,0,82,0,91,0,97,0,108,0,113,0,127,0,136,0,148,0,168,0,188,0,202,0,221,0,232,0,80,0,89,0,92,0,101,0,105,0,114,0,125,0,131,0,139,0,151,0,162,0,177,0,192,0,208,0,223,0,234,0,95,0,104,0,109,0,117,0,123,0,128,0,143,0,144,0,155,0,165,0,175,0,190,0,206,0,219,0,233,0,239,0,111,0,118,0,124,0,129,0,140,0,147,0,157,0,164,0,170,0,181,0,191,0,203,0,224,0,230,0,240,0,243,0,126,0,132,0,137,0,145,0,153,0,160,0,174,0,178,0,184,0,197,0,204,0,216,0,231,0,237,0,244,0,246,0,141,0,149,0,156,0,166,0,172,0,180,0,189,0,199,0,200,0,210,0,220,0,228,0,238,0,242,0,249,0,251,0,152,0,163,0,171,0,183,0,186,0,193,0,201,0,211,0,214,0,218,0,227,0,236,0,245,0,247,0,252,0,253,0,158,0,173,0,187,0,194,0,198,0,209,0,213,0,217,0,225,0,229,0,235,0,241,0,248,0,250,0,254,0,255,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,2,0,2,0,16,0,16,0,3,0,3,0,17,0,17,0,16,0,16,0,4,0,4,0,32,0,32,0,18,0,18,0,5,0,5,0,33,0,33,0,32,0,32,0,19,0,19,0,48,0,48,0,6,0,6,0,34,0,34,0,20,0,20,0,49,0,49,0,48,0,48,0,7,0,7,0,35,0,35,0,64,0,64,0,21,0,21,0,50,0,50,0,36,0,36,0,64,0,64,0,8,0,8,0,65,0,65,0,51,0,51,0,22,0,22,0,37,0,37,0,80,0,80,0,66,0,66,0,9,0,9,0,52,0,52,0,23,0,23,0,81,0,81,0,67,0,67,0,80,0,80,0,38,0,38,0,10,0,10,0,53,0,53,0,82,0,82,0,96,0,96,0,68,0,68,0,24,0,24,0,97,0,97,0,83,0,83,0,39,0,39,0,96,0,96,0,54,0,54,0,11,0,11,0,69,0,69,0,98,0,98,0,112,0,112,0,84,0,84,0,25,0,25,0,40,0,40,0,55,0,55,0,113,0,113,0,99,0,99,0,12,0,12,0,70,0,70,0,112,0,112,0,85,0,85,0,26,0,26,0,114,0,114,0,100,0,100,0,128,0,128,0,41,0,41,0,56,0,56,0,71,0,71,0,115,0,115,0,13,0,13,0,86,0,86,0,129,0,129,0,101,0,101,0,128,0,128,0,72,0,72,0,130,0,130,0,116,0,116,0,27,0,27,0,57,0,57,0,14,0,14,0,87,0,87,0,42,0,42,0,144,0,144,0,102,0,102,0,131,0,131,0,145,0,145,0,117,0,117,0,73,0,73,0,144,0,144,0,88,0,88,0,132,0,132,0,103,0,103,0,28,0,28,0,58,0,58,0,146,0,146,0,118,0,118,0,43,0,43,0,160,0,160,0,147,0,147,0,89,0,89,0,104,0,104,0,133,0,133,0,161,0,161,0,119,0,119,0,160,0,160,0,74,0,74,0,134,0,134,0,148,0,148,0,29,0,29,0,59,0,59,0,162,0,162,0,176,0,176,0,44,0,44,0,120,0,120,0,90,0,90,0,105,0,105,0,163,0,163,0,177,0,177,0,149,0,149,0,176,0,176,0,135,0,135,0,164,0,164,0,178,0,178,0,30,0,30,0,150,0,150,0,192,0,192,0,75,0,75,0,121,0,121,0,60,0,60,0,136,0,136,0,193,0,193,0,106,0,106,0,151,0,151,0,179,0,179,0,192,0,192,0,45,0,45,0,165,0,165,0,166,0,166,0,194,0,194,0,91,0,91,0,180,0,180,0,137,0,137,0,208,0,208,0,122,0,122,0,152,0,152,0,208,0,208,0,195,0,195,0,76,0,76,0,167,0,167,0,209,0,209,0,181,0,181,0,224,0,224,0,107,0,107,0,196,0,196,0,61,0,61,0,153,0,153,0,224,0,224,0,182,0,182,0,168,0,168,0,210,0,210,0,46,0,46,0,138,0,138,0,92,0,92,0,183,0,183,0,225,0,225,0,211,0,211,0,240,0,240,0,197,0,197,0,169,0,169,0,123,0,123,0,154,0,154,0,198,0,198,0,77,0,77,0,212,0,212,0,184,0,184,0,108,0,108,0,226,0,226,0,199,0,199,0,62,0,62,0,227,0,227,0,241,0,241,0,139,0,139,0,213,0,213,0,170,0,170,0,185,0,185,0,155,0,155,0,228,0,228,0,242,0,242,0,124,0,124,0,93,0,93,0,200,0,200,0,243,0,243,0,214,0,214,0,215,0,215,0,229,0,229,0,140,0,140,0,186,0,186,0,201,0,201,0,78,0,78,0,171,0,171,0,109,0,109,0,156,0,156,0,244,0,244,0,216,0,216,0,230,0,230,0,94,0,94,0,245,0,245,0,231,0,231,0,125,0,125,0,202,0,202,0,246,0,246,0,232,0,232,0,172,0,172,0,217,0,217,0,141,0,141,0,110,0,110,0,157,0,157,0,187,0,187,0,247,0,247,0,126,0,126,0,233,0,233,0,218,0,218,0,248,0,248,0,188,0,188,0,203,0,203,0,142,0,142,0,173,0,173,0,158,0,158,0,249,0,249,0,234,0,234,0,204,0,204,0,219,0,219,0,174,0,174,0,189,0,189,0,250,0,250,0,220,0,220,0,190,0,190,0,205,0,205,0,235,0,235,0,206,0,206,0,236,0,236,0,251,0,251,0,221,0,221,0,252,0,252,0,222,0,222,0,237,0,237,0,238,0,238,0,253,0,253,0,254,0,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,32,0,48,0,1,0,64,0,17,0,80,0,33,0,96,0,49,0,2,0,65,0,112,0,18,0,81,0,34,0,128,0,50,0,97,0,3,0,66,0,144,0,19,0,113,0,35,0,82,0,160,0,98,0,51,0,129,0,4,0,67,0,176,0,20,0,114,0,145,0,83,0,36,0,99,0,130,0,52,0,192,0,5,0,161,0,68,0,115,0,21,0,146,0,84,0,208,0,177,0,37,0,131,0,100,0,53,0,162,0,224,0,69,0,6,0,116,0,193,0,147,0,85,0,22,0,240,0,132,0,38,0,178,0,101,0,163,0,54,0,209,0,117,0,70,0,7,0,148,0,194,0,86,0,179,0,225,0,23,0,133,0,39,0,164,0,8,0,102,0,210,0,241,0,55,0,195,0,118,0,149,0,71,0,180,0,24,0,87,0,226,0,134,0,165,0,211,0,40,0,103,0,56,0,72,0,150,0,196,0,242,0,119,0,9,0,181,0,227,0,88,0,166,0,25,0,135,0,41,0,104,0,212,0,57,0,151,0,197,0,120,0,73,0,243,0,182,0,136,0,167,0,213,0,89,0,10,0,228,0,105,0,152,0,198,0,26,0,42,0,121,0,183,0,244,0,168,0,58,0,137,0,229,0,74,0,214,0,90,0,153,0,199,0,184,0,11,0,106,0,245,0,27,0,122,0,230,0,169,0,43,0,215,0,59,0,200,0,138,0,185,0,246,0,75,0,12,0,91,0,154,0,216,0,231,0,107,0,28,0,44,0,201,0,123,0,170,0,60,0,247,0,232,0,76,0,139,0,13,0,92,0,217,0,186,0,248,0,155,0,108,0,29,0,124,0,45,0,202,0,233,0,171,0,61,0,14,0,77,0,140,0,15,0,249,0,93,0,30,0,187,0,156,0,218,0,46,0,109,0,125,0,62,0,172,0,78,0,203,0,31,0,141,0,234,0,94,0,47,0,188,0,63,0,157,0,110,0,250,0,219,0,79,0,126,0,204,0,173,0,142,0,95,0,189,0,111,0,235,0,158,0,220,0,251,0,127,0,174,0,143,0,205,0,236,0,159,0,190,0,221,0,252,0,175,0,206,0,237,0,191,0,253,0,222,0,238,0,207,0,254,0,223,0,239,0,255,0,0,0,4,0,11,0,20,0,31,0,43,0,59,0,75,0,85,0,109,0,130,0,150,0,165,0,181,0,195,0,198,0,1,0,6,0,14,0,23,0,34,0,47,0,64,0,81,0,95,0,114,0,135,0,153,0,171,0,188,0,201,0,212,0,2,0,8,0,16,0,25,0,38,0,52,0,67,0,83,0,101,0,116,0,136,0,157,0,172,0,190,0,205,0,216,0,3,0,10,0,18,0,29,0,41,0,55,0,71,0,89,0,103,0,119,0,141,0,159,0,176,0,194,0,208,0,218,0,5,0,12,0,21,0,32,0,45,0,58,0,74,0,93,0,104,0,123,0,144,0,164,0,179,0,196,0,210,0,223,0,7,0,15,0,26,0,37,0,49,0,63,0,78,0,96,0,112,0,129,0,146,0,166,0,182,0,200,0,215,0,228,0,9,0,19,0,28,0,39,0,54,0,69,0,86,0,102,0,117,0,132,0,151,0,170,0,187,0,206,0,220,0,230,0,13,0,24,0,35,0,46,0,60,0,73,0,91,0,108,0,122,0,137,0,154,0,174,0,189,0,207,0,224,0,235,0,17,0,30,0,40,0,53,0,66,0,82,0,98,0,115,0,126,0,142,0,161,0,180,0,197,0,213,0,227,0,237,0,22,0,36,0,48,0,62,0,76,0,92,0,105,0,120,0,133,0,147,0,167,0,186,0,203,0,219,0,232,0,240,0,27,0,44,0,56,0,70,0,84,0,99,0,113,0,127,0,140,0,156,0,175,0,193,0,209,0,226,0,236,0,244,0,33,0,51,0,68,0,79,0,94,0,110,0,125,0,138,0,149,0,162,0,184,0,202,0,217,0,229,0,241,0,247,0,42,0,61,0,77,0,90,0,106,0,121,0,134,0,148,0,160,0,173,0,191,0,211,0,225,0,238,0,245,0,251,0,50,0,72,0,87,0,100,0,118,0,128,0,145,0,158,0,168,0,183,0,204,0,222,0,233,0,242,0,249,0,253,0,57,0,80,0,97,0,111,0,131,0,143,0,155,0,169,0,178,0,192,0,214,0,231,0,239,0,246,0,250,0,254,0,65,0,88,0,107,0,124,0,139,0,152,0,163,0,177,0,185,0,199,0,221,0,234,0,243,0,248,0,252,0,255,0,0,0,0,0,0,0,0,0,16,0,16,0,32,0,32,0,0,0,0,0,48,0,48,0,1,0,1,0,64,0,64,0,17,0,17,0,80,0,80,0,33,0,33,0,1,0,1,0,49,0,49,0,96,0,96,0,2,0,2,0,65,0,65,0,18,0,18,0,112,0,112,0,34,0,34,0,81,0,81,0,2,0,2,0,50,0,50,0,128,0,128,0,3,0,3,0,97,0,97,0,19,0,19,0,66,0,66,0,144,0,144,0,82,0,82,0,35,0,35,0,113,0,113,0,3,0,3,0,51,0,51,0,160,0,160,0,4,0,4,0,98,0,98,0,129,0,129,0,67,0,67,0,20,0,20,0,83,0,83,0,114,0,114,0,36,0,36,0,176,0,176,0,4,0,4,0,145,0,145,0,52,0,52,0,99,0,99,0,5,0,5,0,130,0,130,0,68,0,68,0,192,0,192,0,161,0,161,0,21,0,21,0,115,0,115,0,84,0,84,0,37,0,37,0,146,0,146,0,208,0,208,0,53,0,53,0,5,0,5,0,100,0,100,0,177,0,177,0,131,0,131,0,69,0,69,0,6,0,6,0,224,0,224,0,116,0,116,0,22,0,22,0,162,0,162,0,85,0,85,0,147,0,147,0,38,0,38,0,193,0,193,0,101,0,101,0,54,0,54,0,6,0,6,0,132,0,132,0,178,0,178,0,70,0,70,0,163,0,163,0,209,0,209,0,7,0,7,0,117,0,117,0,23,0,23,0,148,0,148,0,7,0,7,0,86,0,86,0,194,0,194,0,225,0,225,0,39,0,39,0,179,0,179,0,102,0,102,0,133,0,133,0,55,0,55,0,164,0,164,0,8,0,8,0,71,0,71,0,210,0,210,0,118,0,118,0,149,0,149,0,195,0,195,0,24,0,24,0,87,0,87,0,40,0,40,0,56,0,56,0,134,0,134,0,180,0,180,0,226,0,226,0,103,0,103,0,8,0,8,0,165,0,165,0,211,0,211,0,72,0,72,0,150,0,150,0,9,0,9,0,119,0,119,0,25,0,25,0,88,0,88,0,196,0,196,0,41,0,41,0,135,0,135,0,181,0,181,0,104,0,104,0,57,0,57,0,227,0,227,0,166,0,166,0,120,0,120,0,151,0,151,0,197,0,197,0,73,0,73,0,9,0,9,0,212,0,212,0,89,0,89,0,136,0,136,0,182,0,182,0,10,0,10,0,26,0,26,0,105,0,105,0,167,0,167,0,228,0,228,0,152,0,152,0,42,0,42,0,121,0,121,0,213,0,213,0,58,0,58,0,198,0,198,0,74,0,74,0,137,0,137,0,183,0,183,0,168,0,168,0,10,0,10,0,90,0,90,0,229,0,229,0,11,0,11,0,106,0,106,0,214,0,214,0,153,0,153,0,27,0,27,0,199,0,199,0,43,0,43,0,184,0,184,0,122,0,122,0,169,0,169,0,230,0,230,0,59,0,59,0,11,0,11,0,75,0,75,0,138,0,138,0,200,0,200,0,215,0,215,0,91,0,91,0,12,0,12,0,28,0,28,0,185,0,185,0,107,0,107,0,154,0,154,0,44,0,44,0,231,0,231,0,216,0,216,0,60,0,60,0,123,0,123,0,12,0,12,0,76,0,76,0,201,0,201,0,170,0,170,0,232,0,232,0,139,0,139,0,92,0,92,0,13,0,13,0,108,0,108,0,29,0,29,0,186,0,186,0,217,0,217,0,155,0,155,0,45,0,45,0,13,0,13,0,61,0,61,0,124,0,124,0,14,0,14,0,233,0,233,0,77,0,77,0,14,0,14,0,171,0,171,0,140,0,140,0,202,0,202,0,30,0,30,0,93,0,93,0,109,0,109,0,46,0,46,0,156,0,156,0,62,0,62,0,187,0,187,0,15,0,15,0,125,0,125,0,218,0,218,0,78,0,78,0,31,0,31,0,172,0,172,0,47,0,47,0,141,0,141,0,94,0,94,0,234,0,234,0,203,0,203,0,63,0,63,0,110,0,110,0,188,0,188,0,157,0,157,0,126,0,126,0,79,0,79,0,173,0,173,0,95,0,95,0,219,0,219,0,142,0,142,0,204,0,204,0,235,0,235,0,111,0,111,0,158,0,158,0,127,0,127,0,189,0,189,0,220,0,220,0,143,0,143,0,174,0,174,0,205,0,205,0,236,0,236,0,159,0,159,0,190,0,190,0,221,0,221,0,175,0,175,0,237,0,237,0,206,0,206,0,222,0,222,0,191,0,191,0,238,0,238,0,207,0,207,0,223,0,223,0,239,0,239,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,3,0,0,0,0,0,0,0,3,3,0,0,0,0,0,0,3,3,3,3,0,0,0,0,15,15,0,0,0,0,0,0,15,15,15,15,0,0,0,0,15,15,15,15,15,15,15,15,255,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,255,0,255,0,255,0,255,0,0,0,255,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,85,85,85,85,85,85,85,85,17,17,17,17,17,17,17,17,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,0,0,0,0,6,0,0,0,12,0,0,0,19,0,0,0,25,0,0,0,32,0,0,0,38,0,0,0,44,0,0,0,51,0,0,0,57,0,0,0,64,0,0,0,70,0,0,0,76,0,0,0,83,0,0,0,89,0,0,0,96,0,0,0,102,0,0,0,108,0,0,0,115,0,0,0,121,0,0,0,128,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,255,0,0,0,63,0,0,0,3,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,0,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,112,10,0,0,144,10,0,0,176,10,0,0,0,11,0,0,128,11,0,0,0,12,0,0,16,13,0,0,16,15,0,0,16,17,0,0,32,21,0,0,32,29,0,0,32,37,0,0,112,10,0,0,144,10,0,0,176,10,0,0,48,53,0,0,80,53,0,0,112,53,0,0,192,53,0,0,224,53,0,0,0,54,0,0,112,10,0,0,144,10,0,0,176,10,0,0,0,11,0,0,128,11,0,0,0,12,0,0,80,54,0,0,208,54,0,0,80,55,0,0,96,56,0,0,224,56,0,0,96,57,0,0,0,11,0,0,128,11,0,0,0,12,0,0,16,13,0,0,16,15,0,0,16,17,0,0,112,58,0,0,112,60,0,0,112,62,0,0,128,66,0,0,128,68,0,0,128,70,0,0,16,13,0,0,16,15,0,0,16,17,0,0,32,21,0,0,32,29,0,0,32,37,0,0,32,21,0,0,32,29,0,0,32,37,0,0,32,21,0,0,32,29,0,0,32,37,0,0,32,21,0,0,32,29,0,0,32,37,0,0,1,115,0,0,5,0,0,0,1,0,64,0,1,0,0,0,3,0,0,0,160,78,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,6,0,0,0,8,1,0,0,7,0,0,0,3,1,0,0,8,0,0,0,7,1,0,0,9,0,0,0,9,1,0,0,10,0,0,0,10,1,0,0,11,0,0,0,0,1,0,0,12,0,0,0,1,1,0,0,13,0,0,0,128,0,0,0,14,0,0,0,5,1,0,0,15,0,0,0,6,1,0,0,16,0,0,0,4,1,0,0,17,0,0,0,255,255,255,255,0,0,0,0,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,0,0,0,0,0,0,0,0,254,255,255,255,254,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,254,255,255,255,254,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,0,0,0,0,0,0,0,0,254,255,255,255,254,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,254,255,255,255,254,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,0,0,0,0,0,0,0,0,254,255,255,255,254,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,254,255,255,255,254,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,0,0,0,0,0,0,0,0,254,255,255,255,254,255,255,255,255,255,255,255],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+10240);allocate([255,255,255,255,254,255,255,255,254,255,255,255,254,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,254,255,255,255,254,255,255,255,0,0,0,0,254,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,1,0,0,0,255,255,255,255,255,255,255,255,254,255,255,255,0,0,0,0,0,0,0,0,254,255,255,255,255,255,255,255,254,255,255,255,254,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,1,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,253,255,255,255,0,0,0,0,0,0,0,0,253,255,255,255,253,255,255,255,253,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,0,0,0,0,2,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,1,0,0,0,0,0,0,0,253,255,255,255,253,255,255,255,0,0,0,0,253,255,255,255,253,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,2,0,0,0,255,255,255,255,255,255,255,255,1,0,0,0,255,255,255,255,253,255,255,255,0,0,0,0,0,0,0,0,253,255,255,255,253,255,255,255,253,255,255,255,255,255,255,255,1,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,2,0,0,0,2,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,253,255,255,255,0,0,0,0,0,0,0,0,253,255,255,255,253,255,255,255,253,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,0,0,0,0,4,0,0,0,255,255,255,255,255,255,255,255,2,0,0,0,255,255,255,255,255,255,255,255,0,0,0,0,253,255,255,255,253,255,255,255,0,0,0,0,2,0,0,0,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,4,0,0,0,2,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,253,255,255,255,0,0,0,0,0,0,0,0,253,255,255,255,255,255,255,255,2,0,0,0,255,255,255,255,3,0,0,0,3,0,0,0,255,255,255,255,255,255,255,255,4,0,0,0,4,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,6,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,3,0,0,0,9,0,0,0,0,0,0,0,9,0,0,0,9,0,0,0,5,0,0,0,5,0,0,0,9,0,0,0,5,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,9,0,0,0,6,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,0,83,0,0,5,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,3,0,0,0,156,148,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,3,0,3,0,3,0,15,0,15,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,17,0,1,0,17,0,17,17,17,0,17,17,1,0,1,0,1,0,1,0,1,0,1,0,1,0,17,0,3,0,51,0,51,51,255,0,255,255,255,255,255,255,15,15,15,0,255,255,255,255,85,85,17,17,4,0,8,0,8,0,9,0,10,0,11,0,12,0,12,0,13,0,14,0,15,0,16,0,17,0,18,0,19,0,19,0,20,0,21,0,22,0,23,0,24,0,25,0,26,0,26,0,27,0,28,0,29,0,30,0,31,0,32,0,32,0,33,0,34,0,35,0,36,0,37,0,38,0,38,0,39,0,40,0,41,0,42,0,43,0,43,0,44,0,45,0,46,0,47,0,48,0,48,0,49,0,50,0,51,0,52,0,53,0,53,0,54,0,55,0,56,0,57,0,57,0,58,0,59,0,60,0,61,0,62,0,62,0,63,0,64,0,65,0,66,0,66,0,67,0,68,0,69,0,70,0,70,0,71,0,72,0,73,0,74,0,74,0,75,0,76,0,77,0,78,0,78,0,79,0,80,0,81,0,81,0,82,0,83,0,84,0,85,0,85,0,87,0,88,0,90,0,92,0,93,0,95,0,96,0,98,0,99,0,101,0,102,0,104,0,105,0,107,0,108,0,110,0,111,0,113,0,114,0,116,0,117,0,118,0,120,0,121,0,123,0,125,0,127,0,129,0,131,0,134,0,136,0,138,0,140,0,142,0,144,0,146,0,148,0,150,0,152,0,154,0,156,0,158,0,161,0,164,0,166,0,169,0,172,0,174,0,177,0,180,0,182,0,185,0,187,0,190,0,192,0,195,0,199,0,202,0,205,0,208,0,211,0,214,0,217,0,220,0,223,0,226,0,230,0,233,0,237,0,240,0,243,0,247,0,250,0,253,0,1,1,5,1,9,1,13,1,16,1,20,1,24,1,28,1,32,1,36,1,40,1,44,1,48,1,53,1,57,1,61,1,66,1,70,1,74,1,79,1,84,1,88,1,93,1,98,1,103,1,108,1,113,1,118,1,123,1,128,1,133,1,139,1,144,1,150,1,155,1,161,1,167,1,173,1,179,1,185,1,191,1,198,1,205,1,211,1,219,1,226,1,233,1,241,1,249,1,1,2,10,2,18,2,27,2,37,2,47,2,57,2,67,2,78,2,90,2,102,2,114,2,128,2,142,2,156,2,172,2,188,2,205,2,224,2,243,2,7,3,28,3,51,3,75,3,101,3,128,3,157,3,187,3,220,3,254,3,34,4,74,4,115,4,160,4,208,4,2,5,56,5,4,0,8,0,9,0,10,0,11,0,12,0,13,0,14,0,15,0,16,0,17,0,18,0,19,0,20,0,21,0,22,0,23,0,24,0,25,0,26,0,27,0,28,0,29,0,30,0,31,0,32,0,33,0,34,0,35,0,36,0,37,0,38,0,39,0,40,0,41,0,42,0,43,0,44,0,45,0,46,0,47,0,48,0,49,0,50,0,51,0,52,0,53,0,54,0,55,0,56,0,57,0,58,0,59,0,60,0,61,0,62,0,63,0,64,0,65,0,66,0,67,0,68,0,69,0,70,0,71,0,72,0,73,0,74,0,75,0,76,0,77,0,78,0,79,0,80,0,81,0,82,0,83,0,84,0,85,0,86,0,87,0,88,0,89,0,90,0,91,0,92,0,93,0,94,0,95,0,96,0,97,0,98,0,99,0,100,0,101,0,102,0,104,0,106,0,108,0,110,0,112,0,114,0,116,0,118,0,120,0,122,0,124,0,126,0,128,0,130,0,132,0,134,0,136,0,138,0,140,0,142,0,144,0,146,0,148,0,150,0,152,0,155,0,158,0,161,0,164,0,167,0,170,0,173,0,176,0,179,0,182,0,185,0,188,0,191,0,194,0,197,0,200,0,203,0,207,0,211,0,215,0,219,0,223,0,227,0,231,0,235,0,239,0,243,0,247,0,251,0,255,0,4,1,9,1,14,1,19,1,24,1,29,1,34,1,39,1,44,1,49,1,55,1,61,1,67,1,73,1,79,1,85,1,91,1,97,1,103,1,110,1,117,1,124,1,131,1,138,1,145,1,152,1,160,1,168,1,176,1,184,1,192,1,200,1,209,1,218,1,227,1,236,1,245,1,254,1,8,2,18,2,28,2,38,2,48,2,59,2,70,2,81,2,92,2,103,2,115,2,127,2,139,2,151,2,164,2,177,2,190,2,203,2,217,2,231,2,245,2,3,3,18,3,33,3,48,3,64,3,80,3,96,3,113,3,130,3,147,3,165,3,183,3,201,3,220,3,239,3,2,4,22,4,42,4,63,4,84,4,105,4,127,4,149,4,172,4,195,4,219,4,243,4,12,5,37,5,63,5,89,5,116,5,143,5,171,5,199,5,228,5,1,6,31,6,61,6,92,6,124,6,156,6,189,6,223,6,1,7,36,7,3,86,128,6,86,23,88,29,6,86,128,11,87,42,91,52,9,86,129,17,88,61,94,76,12,86,129,22,88,77,97,93,15,87,129,28,89,93,100,110,17,87,129,33,90,105,103,123,20,88,130,38,91,118,106,136,23,88,130,43,91,128,108,146,26,89,131,48,92,139,111,156,28,89,131,53,93,147,114,163,31,90,131,58,94,156,117,171,34,90,131,62,94,163,119,177,37,90,132,66,95,171,122,184,39,90,132,70,96,177,124,189,42,91,132,75,97,183,127,194,44,91,132,79,97,188,129,198,47,92,133,83,98,193,132,202,49,92,133,86,99,197,134,205,52,93,133,90,100,201,137,208,54,93,133,94,100,204,139,211,57,94,134,98,101,208,142,214,59,94,134,101,102,211,144,216,62,94,135,105,103,214,146,218,64,94,135,108,103,216,148,220,66,95,135,111,104,219,151,222,68,95,135,114,105,221,153,223,71,96,136,117,106,224,155,225,73,96,136,120,106,225,157,226,76,97,136,123,107,227,159,228,78,97,136,126,108,229,160,229,80,98,137,129,109,231,162,231,82,98,137,131,109,232,164,232,84,98,138,134,110,234,166,233,86,98,138,137,111,235,168,234,89,99,138,140,112,236,170,235,91,99,138,142,112,237,171,235,93,100,139,145,113,238,173,236,95,100,139,147,114,239,174,237,97,101,140,149,115,240,176,238,99,101,140,151,115,241,177,238,101,102,140,154,116,242,179,239,103,102,140,156,117,242,180,239,105,103,141,158,118,243,182,240,107,103,141,160,118,243,183,240,109,104,141,162,119,244,185,241,111,104,141,164,119,244,186,241,113,104,142,166,120,245,187,242,114,104,142,168,121,245,188,242,116,105,143,170,122,246,190,243,118,105,143,171,122,246,191,243,120,106,143,173,123,247,192,244,121,106,143,175,124,247,193,244,123,107,144,177,125,248,195,244,125,107,144,178,125,248,196,244,127,108,145,180,126,249,197,245,128,108,145,181,127,249,198,245,130,109,145,183,128,249,199,245,132,109,145,184,128,249,200,245,134,110,146,186,129,250,201,246,135,110,146,187,130,250,202,246,137,111,147,189,131,251,203,246,138,111,147,190,131,251,204,246,140,112,147,192,132,251,205,247,141,112,147,193,132,251,206,247,143,113,148,194,133,251,207,247,144,113,148,195,134,251,207,247,146,114,149,197,135,252,208,248,147,114,149,198,135,252,209,248,149,115,149,199,136,252,210,248,150,115,149,200,137,252,210,248,152,115,150,201,138,252,211,248,153,115,150,202,138,252,212,248,155,116,151,204,139,253,213,249,156,116,151,205,139,253,213,249,158,117,151,206,140,253,214,249,159,117,151,207,141,253,215,249,161,118,152,208,142,253,216,249,162,118,152,209,142,253,216,249,163,119,153,210,143,253,217,249,164,119,153,211,143,253,217,249,166,120,153,212,144,254,218,250,167,120,153,212,145,254,219,250,168,121,154,213,146,254,220,250,169,121,154,214,146,254,220,250,171,122,155,215,147,254,221,250,172,122,155,216,147,254,221,250,173,123,155,217,148,254,222,250,174,123,155,217,149,254,222,250,176,124,156,218,150,254,223,250,177,124,156,219,150,254,223,250,178,125,157,220,151,254,224,251,179,125,157,220,151,254,224,251,180,126,157,221,152,254,225,251,181,126,157,221,152,254,225,251,183,127,158,222,153,254,226,251,184,127,158,223,154,254,226,251,185,128,159,224,155,255,227,251,186,128,159,224,155,255,227,251,187,129,160,225,156,255,228,251,188,130,160,225,156,255,228,251,189,131,160,226,157,255,228,251,190,131,160,226,158,255,228,251,191,132,161,227,159,255,229,251,192,132,161,227,159,255,229,251,193,133,162,228,160,255,230,252,194,133,162,229,160,255,230,252,195,134,163,230,161,255,231,252,196,134,163,230,161,255,231,252,197,135,163,231,162,255,231,252,198,135,163,231,162,255,231,252,199,136,164,232,163,255,232,252,200,136,164,232,164,255,232,252,201,137,165,233,165,255,233,252,201,137,165,233,165,255,233,252,202,138,166,233,166,255,233,252,203,138,166,233,166,255,233,252,204,139,166,234,167,255,234,252,205,139,166,234,167,255,234,252,206,140,167,235,168,255,235,252,206,140,167,235,168,255,235,252,207,141,168,236,169,255,235,252,208,141,168,236,170,255,235,252,209,142,169,237,171,255,236,252,209,143,169,237,171,255,236,252,210,144,169,237,172,255,236,252,211,144,169,237,172,255,236,252,212,145,170,238,173,255,237,252,213,145,170,238,173,255,237,252,214,146,171,239,174,255,237,253,214,146,171,239,174,255,237,253,215,147,172,240,175,255,238,253,215,147,172,240,175,255,238,253,216,148,173,240,176,255,238,253,217,148,173,240,176,255,238,253,218,149,173,241,177,255,239,253,218,149,173,241,178,255,239,253,219,150,174,241,179,255,239,253,219,151,174,241,179,255,239,253,220,152,175,242,180,255,240,253,221,152,175,242,180,255,240,253,222,153,176,242,181,255,240,253,222,153,176,242,181,255,240,253,223,154,177,243,182,255,240,253,223,154,177,243,182,255,240,253,224,155,178,244,183,255,241,253,224,155,178,244,183,255,241,253,225,156,178,244,184,255,241,253,225,157,178,244,184,255,241,253,226,158,179,244,185,255,242,253,227,158,179,244,185,255,242,253,228,159,180,245,186,255,242,253,228,159,180,245,186,255,242,253,229,160,181,245,187,255,242,253,229,160,181,245,187,255,242,253,230,161,182,246,188,255,243,253,230,162,182,246,188,255,243,253,231,163,183,246,189,255,243,253,231,163,183,246,189,255,243,253,232,164,184,247,190,255,243,253,232,164,184,247,190,255,243,253,233,165,185,247,191,255,244,253,233,165,185,247,191,255,244,253,234,166,185,247,192,255,244,253,234,167,185,247,192,255,244,253,235,168,186,248,193,255,244,253,235,168,186,248,193,255,244,253,236,169,187,248,194,255,244,253,236,169,187,248,194,255,244,253,236,170,188,248,195,255,245,253,236,170,188,248,195,255,245,253,237,171,189,249,196,255,245,254,237,172,189,249,196,255,245,254,238,173,190,249,197,255,245,254,238,173,190,249,197,255,245,254,239,174,191,249,198,255,245,254,239,174,191,249,198,255,245,254,240,175,192,249,199,255,246,254,240,176,192,249,199,255,246,254,240,177,193,250,200,255,246,254,240,177,193,250,200,255,246,254,241,178,194,250,201,255,246,254,241,178,194,250,201,255,246,254,242,179,195,250,202,255,246,254,242,180,195,250,202,255,246,254,242,181,196,250,203,255,247,254,242,181,196,250,203,255,247,254,243,182,197,251,204,255,247,254,243,183,197,251,204,255,247,254,244,184,198,251,205,255,247,254,244,184,198,251,205,255,247,254,244,185,199,251,206,255,247,254,244,185,199,251,206,255,247,254,245,186,200,251,207,255,247,254,245,187,200,251,207,255,247,254,246,188,201,252,207,255,248,254,246,188,201,252,207,255,248,254,246,189,202,252,208,255,248,254,246,190,202,252,208,255,248,254,247,191,203,252,209,255,248,254,247,191,203,252,209,255,248,254,247,192,204,252,210,255,248,254,247,193,204,252,210,255,248,254,248,194,205,252,211,255,248,254,248,194,205,252,211,255,248,254,248,195,206,252,212,255,249,254,248,196,206,252,212,255,249,254,249,197,207,253,213,255,249,254,249,197,207,253,213,255,249,254,249,198,208,253,214,255,249,254,249,199,209,253,214,255,249,254,250,200,210,253,215,255,249,254,250,200,210,253,215,255,249,254,250,201,211,253,215,255,249,254,250,202,211,253,215,255,249,254,250,203,212,253,216,255,249,254,250,203,212,253,216,255,249,254,251,204,213,253,217,255,250,254,251,205,213,253,217,255,250,254,251,206,214,254,218,255,250,254,251,206,215,254,218,255,250,254,252,207,216,254,219,255,250,254,252,208,216,254,219,255,250,254,252,209,217,254,220,255,250,254,252,210,217,254,220,255,250,254,252,211,218,254,221,255,250,254,252,212,218,254,221,255,250,254,253,213,219,254,222,255,250,254,253,213,220,254,222,255,250,254,253,214,221,254,223,255,250,254,253,215,221,254,223,255,250,254,253,216,222,254,224,255,251,254,253,217,223,254,224,255,251,254,253,218,224,254,225,255,251,254,253,219,224,254,225,255,251,254,254,220,225,254,225,255,251,254,254,221,226,254,225,255,251,254,254,222,227,255,226,255,251,254,254,223,227,255,226,255,251,254,254,224,228,255,227,255,251,254,254,225,229,255,227,255,251,254,254,226,230,255,228,255,251,254,254,227,230,255,229,255,251,254,255,228,231,255,230,255,251,254,255,229,232,255,230,255,251,254,255,230,233,255,231,255,252,254,255,231,234,255,231,255,252,254,255,232,235,255,232,255,252,254,255,233,236,255,232,255,252,254,255,235,237,255,233,255,252,254,255,236,238,255,234,255,252,254,255,238,240,255,235,255,252,255,255,239,241,255,235,255,252,254,255,241,243,255,236,255,252,254,255,243,245,255,237,255,252,254,255,246,247,255,239,255,253,255,195,29,183,84,49,136,8,42,71,0,0,0,0,0,0,0,0,0,31,107,169,35,99,159,17,82,140,8,66,114,2,44,76,1,19,32,40,132,201,29,114,187,13,91,157,7,75,127,3,58,95,1,28,47,69,142,221,42,122,201,15,91,159,6,67,121,1,42,77,1,17,31,102,148,228,67,117,204,17,82,154,6,59,114,2,39,75,1,15,29,156,57,233,119,57,212,58,48,163,29,40,124,12,30,81,3,12,31,191,107,226,124,117,204,25,99,155,0,0,0,0,0,0,0,0,0,29,148,210,37,126,194,8,93,157,2,68,118,1,39,69,1,17,33,41,151,213,27,123,193,3,82,144,1,58,105,1,32,60,1,13,26,59,159,220,23,126,198,4,88,151,1,66,114,1,38,71,1,18,34,114,136,232,51,114,207,11,83,155,3,56,105,1,33,65,1,17,34,149,65,234,121,57,215,61,49,166,28,36,114,12,25,76,3,16,42,214,49,220,132,63,188,42,65,137,0,0,0,0,0,0,0,0,0,85,137,221,104,131,216,49,111,192,21,87,155,2,49,87,1,16,28,89,163,230,90,137,220,29,100,183,10,70,135,2,42,81,1,17,33,108,167,237,55,133,222,15,97,179,4,72,135,1,45,85,1,19,38,124,146,240,66,124,224,17,88,175,4,58,122,1,36,75,1,18,37,141,79,241,126,70,227,66,58,182,30,44,136,12,34,96,2,20,47,229,99,249,143,111,235,46,109,192,0,0,0,0,0,0,0,0,0,82,158,236,94,146,224,25,117,191,9,87,149,3,56,99,1,33,57,83,167,237,68,145,222,10,103,177,2,72,131,1,41,79,1,20,39,99,167,239,47,141,224,10,104,178,2,73,133,1,44,85,1,22,47,127,145,243,71,129,228,17,93,177,3,61,124,1,41,84,1,21,52,157,78,244,140,72,231,69,58,184,31,44,137,14,38,105,8,23,61,125,34,187,52,41,133,6,31,56,0,0,0,0,0,0,0,0,0,37,109,153,51,102,147,23,87,128,8,67,101,1,41,63,1,19,29,31,154,185,17,127,175,6,96,145,2,73,114,1,51,82,1,28,45,23,163,200,10,131,185,2,93,148,1,67,111,1,41,69,1,14,24,29,176,217,12,145,201,3,101,156,1,69,111,1,39,63,1,14,23,57,192,233,25,154,215,6,109,167,3,78,118,1,48,69,1,21,29,202,105,245,108,106,216,18,90,144,0,0,0,0,0,0,0,0,0,33,172,219,64,149,206,14,117,177,5,90,141,2,61,95,1,37,57,33,179,220,11,140,198,1,89,148,1,60,104,1,33,57,1,12,21,30,181,221,8,141,198,1,87,145,1,58,100,1,31,55,1,12,20,32,186,224,7,142,198,1,86,143,1,58,100,1,31,55,1,12,22,57,192,227,20,143,204,3,96,154,1,68,112,1,42,69,1,19,32,212,35,215,113,47,169,29,48,105,0,0,0,0,0,0,0,0,0,74,129,203,106,120,203,49,107,178,19,84,144,4,50,84,1,15,25,71,172,217,44,141,209,15,102,173,6,76,133,2,51,89,1,24,42,64,185,231,31,148,216,8,103,175,3,74,131,1,46,81,1,18,30,65,196,235,25,157,221,5,105,174,1,67,120,1,38,69,1,15,30,65,204,238,30,156,224,7,107,177,2,70,124,1,42,73,1,18,34,225,86,251,144,104,235,42,99,181,0,0,0,0,0,0,0,0,0,85,175,239,112,165,229,29,136,200,12,103,162,6,77,123,2,53,84,75,183,239,30,155,221,3,106,171,1,74,128,1,44,76,1,17,28,73,185,240,27,159,222,2,107,172,1,75,127,1,42,73,1,17,29,62,190,238,21,159,222,2,107,172,1,72,122,1,40,71,1,18,32,61,199,240,27,161,226,4,113,180,1,76,129,1,46,80,1,23,41,7,27,153,5,30,95,1,16,30,0,0,0,0,0,0,0,0,0,50,75,127,57,75,124,27,67,108,10,54,86,1,33,52,1,12,18,43,125,151,26,108,148,7,83,122,2,59,89,1,38,60,1,17,27,23,144,163,13,112,154,2,75,117,1,50,81,1,31,51,1,14,23,18,162,185,6,123,171,1,78,125,1,51,86,1,31,54,1,14,23,15,199,227,3,150,204,1,91,146,1,55,95,1,30,53,1,11,20,19,55,240,19,59,196,3,52,105,0,0,0,0,0,0,0,0,0,41,166,207,104,153,199,31,123,181,14,101,152,5,72,106,1,36,52,35,176,211,12,131,190,2,88,144,1,60,101,1,36,60,1,16,28,28,183,213,8,134,191,1,86,142,1,56,96,1,30,53,1,12,20,20,190,215,4,135,192,1,84,139,1,53,91,1,28,49,1,11,20,13,196,216,2,137,192,1,86,143,1,57,99,1,32,56,1,13,24,211,29,217,96,47,156,22,43,87,0,0,0,0,0,0,0,0,0,78,120,193,111,116,186,46,102,164,15,80,128,2,49,76,1,18,28,71,161,203,42,132,192,10,98,150,3,69,109,1,44,70,1,18,29,57,186,211,30,140,196,4,93,146,1,62,102,1,38,65,1,16,27,47,199,217,14,145,196,1,88,142,1,57,98,1,36,62,1,15,26,26,219,229,5,155,207,1,94,151,1,60,104,1,36,62,1,16,28,233,29,248,146,47,220,43,52,140,0,0,0,0,0,0,0,0,0,100,163,232,179,161,222,63,142,204,37,113,174,26,89,137,18,68,97,85,181,230,32,146,209,7,100,164,3,71,121,1,45,77,1,18,30,65,187,230,20,148,207,2,97,159,1,68,116,1,40,70,1,14,29,40,194,227,8,147,204,1,94,155,1,65,112,1,39,66,1,14,26,16,208,228,3,151,207,1,98,160,1,67,117,1,41,74,1,17,31,17,38,140,7,34,80,1,17,29,0,0,0,0,0,0,0,0,0,37,75,128,41,76,128,26,66,116,12,52,94,2,32,55,1,10,16,50,127,154,37,109,152,16,82,121,5,59,85,1,35,54,1,13,20,40,142,167,17,110,157,2,71,112,1,44,72,1,27,45,1,11,17,30,175,188,9,124,169,1,74,116,1,48,78,1,30,49,1,11,18,10,222,223,2,150,194,1,83,128,1,48,79,1,27,45,1,11,17,36,41,235,29,36,193,10,27,111,0,0,0,0,0,0,0,0,0,85,165,222,177,162,215,110,135,195,57,113,168,23,83,120,10,49,61,85,190,223,36,139,200,5,90,146,1,60,103,1,38,65,1,18,30,72,202,223,23,141,199,2,86,140,1,56,97,1,36,61,1,16,27,55,218,225,13,145,200,1,86,141,1,57,99,1,35,61,1,13,22,15,235,212,1,132,184,1,84,139,1,57,97,1,34,56,1,14,23,181,21,201,61,37,123,10,38,71,0,0,0,0,0,0,0,0,0,47,106,172,95,104,173,42,93,159,18,77,131,4,50,81,1,17,23,62,147,199,44,130,189,28,102,154,18,75,115,2,44,65,1,12,19,55,153,210,24,130,194,3,93,146,1,61,97,1,31,50,1,10,16,49,186,223,17,148,204,1,96,142,1,53,83,1,26,44,1,11,17,13,217,212,2,136,180,1,78,124,1,50,83,1,29,49,1,14,23,197,13,247,82,17,222,25,17,162,0,0,0,0,0,0,0,0,0,126,186,247,234,191,243,176,177,234,104,158,220,66,128,186,55,90,137,111,197,242,46,158,219,9,104,171,2,65,125,1,44,80,1,17,91,104,208,245,39,168,224,3,109,162,1,79,124,1,50,102,1,43,102,84,220,246,31,177,231,2,115,180,1,79,134,1,55,77,1,60,79,43,243,240,8,180,217,1,115,166,1,84,121,1,51,67,1,16,6,137,30,42,148,151,207,70,52,91,92,45,102,136,116,180,74,90,100,73,32,19,187,222,215,46,34,100,91,30,32,116,121,186,93,86,94,72,35,36,149,68,206,68,63,105,73,31,28,138,57,124,55,122,151,67,23,21,140,126,197,40,37,171,86,27,28,128,154,212,45,43,53,74,32,27,107,86,160,63,134,102,59,67,44,140,161,202,78,67,119,63,36,126,146,123,158,60,90,96,43,46,168,134,107,128,69,142,92,44,29,68,159,201,177,50,57,77,58,38,76,114,97,172,78,133,92,46,41,76,140,63,184,69,112,57,38,32,85,140,46,112,54,151,133,39,27,61,131,110,175,44,75,136,52,30,74,113,130,175,51,64,58,47,35,80,100,74,143,64,163,74,36,61,116,114,128,162,80,125,82,82,26,26,171,208,204,44,32,105,55,44,68,166,179,192,57,57,108,42,26,11,199,241,228,23,15,85,68,42,19,131,160,199,55,52,83,58,50,25,139,115,232,39,52,118,50,35,33,153,104,162,64,59,131,44,24,16,150,177,202,33,19,156,55,27,12,153,203,218,26,27,49,53,49,21,110,116,168,59,80,76,38,72,19,168,203,212,50,50,107,103,26,36,129,132,201,83,80,93,59,38,83,112,103,162,98,136,90,62,30,23,158,200,207,59,57,50,67,30,29,84,86,191,102,91,59,60,32,33,112,71,220,64,89,104,53,26,34,130,56,149,84,120,103,53,21,23,133,109,210,56,77,172,77,19,29,112,142,228,55,66,36,61,29,29,93,97,165,83,175,162,47,47,43,114,137,181,100,99,95,69,23,29,128,83,199,46,44,101,53,40,55,139,69,183,61,80,110,40,29,19,161,180,207,43,24,91,60,34,19,105,61,198,53,64,89,52,31,22,158,40,209,58,62,89,44,31,29,147,46,158,56,102,198,35,19,12,135,87,209,41,45,167,55,25,21,118,95,215,38,39,66,51,38,25,113,58,164,70,93,97,47,54,34,146,108,203,72,103,151,64,19,37,156,66,138,49,95,133,46,27,80,150,55,124,55,121,135,36,23,27,165,149,166,54,64,118,53,21,36,131,63,163,60,109,81,40,26,35,154,40,185,51,97,123,35,19,34,179,19,97,48,129,124,36,20,26,136,62,164,33,77,154,45,18,32,130,90,157,40,79,91,45,26,28,129,45,129,49,147,123,38,44,51,136,74,162,57,97,121,75,17,22,136,138,185,32,34,166,56,39,58,133,117,173,48,53,187,35,21,12,161,212,207,20,23,145,56,29,19,117,109,181,55,68,112,47,29,17,153,64,220,59,51,114,46,16,24,136,76,147,41,64,172,34,17,11,108,152,187,13,15,209,51,24,14,115,133,209,32,26,104,55,30,18,122,79,179,44,88,116,37,49,25,129,168,164,41,54,148,82,22,32,127,143,213,39,41,70,62,44,61,123,105,189,48,57,64,47,25,17,175,222,220,24,30,86,68,36,17,106,102,206,59,74,74,57,39,23,151,68,216,55,63,58,49,30,35,141,70,168,82,40,115,51,25,15,136,129,202,38,35,139,68,26,16,111,141,215,29,28,28,59,39,19,114,75,180,77,104,42,40,61,26,126,152,206,61,59,93,78,23,39,111,117,170,74,124,94,48,34,86,101,92,146,78,179,134,47,22,24,138,187,178,68,69,59,56,25,33,105,112,187,95,177,129,48,31,27,114,63,183,82,116,56,43,28,37,121,63,123,61,192,169,42,17,24,109,97,177,56,76,122,58,18,28,105,139,182,70,92,63,46,23,32,74,86,150,67,183,88,36,38,48,92,122,165,88,137,91,65,70,60,155,159,199,61,60,81,44,78,115,132,119,173,71,112,93,39,38,21,184,227,206,42,32,64,58,47,36,124,137,193,80,82,78,49,50,35,144,95,205,63,78,59,41,53,52,148,71,142,65,128,51,40,36,28,143,143,202,40,55,137,52,34,29,129,183,227,42,35,43,42,44,44,104,105,164,64,130,80,43,81,53,140,169,204,68,84,72,144,11,54,157,195,130,46,58,108,118,15,123,148,131,101,44,93,131,113,12,23,188,226,142,26,32,125,120,11,50,123,163,135,64,77,103,113,9,36,155,111,157,32,44,161,116,9,55,176,76,96,37,61,149,115,9,28,141,161,167,21,25,193,120,12,32,145,195,142,32,38,86,116,12,64,120,140,125,49,115,121,102,19,66,162,182,122,35,59,128,158,97,94,93,24,99,85,119,44,62,59,67,149,53,53,94,20,48,83,53,24,52,18,18,150,40,39,78,12,26,67,33,11,24,7,5,174,35,49,68,11,27,57,15,9,12,3,3,0,2,247,4,255,6,8,12,254,10,252,251,253,14,248,16,250,249,254,2,0,4,255,253,0,2,255,4,254,253,0,2,255,254,120,7,76,176,208,126,28,54,103,48,12,154,155,139,90,34,117,119,67,6,25,204,243,158,13,21,96,97,5,44,131,176,139,48,68,97,83,5,42,156,111,152,26,49,152,80,5,58,178,74,83,33,62,145,86,5,32,154,192,168,14,22,163,85,5,32,156,216,148,19,29,73,77,7,64,116,132,122,37,126,120,101,21,107,181,192,103,19,67,125,65,32,18,144,162,194,41,51,98,132,68,18,165,217,196,45,40,78,173,80,19,176,240,193,64,35,46,221,135,38,194,248,121,96,85,29,199,122,141,147,63,159,148,133,118,121,104,114,174,73,87,92,41,83,82,99,50,53,39,39,177,58,59,68,26,63,52,79,25,17,14,12,222,34,30,72,16,44,58,32,12,10,7,6,239,183,119,96,41,50,126,123,221,226,33,16,77,74,142,142,172,170,238,247,3,136,37,5,52,13,20,152,15,101,100,66,192,128,64,2,173,34,7,145,85,7,166,63,7,94,66,8,64,46,17,81,31,25,29,30,0,2,255,4,254,253,0,2,255,4,6,8,254,253,10,12,252,251,250,14,16,18,249,248,247,246,0,255,0,2,255,4,254,253,0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,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9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,32,64,96,128,224,144,192,168,192,176,192,198,198,245,216,136,140,148,160,176,192,224,234,234,240,128,128,64,96,112,64,64,96,64,160,128,128,216,128,176,160,176,176,192,198,198,208,208,136,140,148,160,176,192,224,234,234,240,128,128,64,96,112,64,64,96,64,160,128,2,4,6,8,10,12,0,255,254,253,252,251,250,249,1,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,108,102,95,115,121,110,99,45,62,109,117,116,101,120,95,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,108,102,95,115,121,110,99,45,62,99,111,110,100,95,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,108,102,95,115,121,110,99,45,62,108,102,100,97,116,97,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,108,102,95,115,121,110,99,45,62,99,117,114,95,115,98,95,99,111,108,0,1,1,2,2,2,4,4,4,8,8,8,16,16,1,2,1,2,4,2,4,8,4,8,16,8,16,1,1,1,1,1,2,2,2,4,4,4,8,8,1,1,1,1,2,1,2,4,2,4,8,4,8,0,1,2,3,4,5,6,7,8,9,10,11,12,13,13,13,2,13,13,5,13,13,8,13,13,11,13,13,13,1,13,13,4,13,13,7,13,13,10,13,13,13,0,13,13,3,13,13,6,13,13,9,0,0,0,1,1,1,2,2,2,3,3,3,3,0,1,2,3,3,0,13,13,13,1,0,13,13,2,13,0,13,3,2,1,0,4,3,13,1,5,13,3,2,6,5,4,3,7,6,13,4,8,13,6,5,9,8,7,6,10,9,13,7,11,13,9,8,12,11,10,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,0,0,0,1,0,1,0,1,0,1,1,1,0,1,1,0,0,0,0,1,1,1,1,2,1,1,1,2,1,1,1,0,0,0,0,1,1,1,1,2,2,1,1,2,2,1,1,0,0,0,0,1,1,1,1,2,1,2,1,2,1,2,1,0,0,0,0,1,1,1,1,2,2,2,2,3,2,2,2,0,0,0,0,1,1,1,1,2,2,2,2,3,3,2,2,0,0,0,0,1,1,1,1,2,2,2,2,3,2,3,2,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,15,15,15,14,14,15,14,14,14,12,12,14,12,12,12,8,8,12,8,8,8,0,0,8,0,0,87,101,98,77,32,80,114,111,106,101,99,116,32,86,80,57,32,68,101,99,111,100,101,114,32,118,49,46,54,46,49,45,49,45,103,51,48,49,99,48,54,101,57,101,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,98,117,102,102,101,114,32,112,111,111,108,32,109,117,116,101,120,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,102,114,97,109,101,95,119,111,114,107,101,114,115,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,102,114,97,109,101,95,119,111,114,107,101,114,95,100,97,116,97,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,102,114,97,109,101,95,119,111,114,107,101,114,95,100,97,116,97,32,109,117,116,101,120,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,102,114,97,109,101,95,119,111,114,107,101,114,95,100,97,116,97,32,99,111,110,100,0,70,114,97,109,101,32,87,111,114,107,101,114,32,116,104,114,101,97,100,32,99,114,101,97,116,105,111,110,32,102,97,105,108,101,100,0,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,105,110,116,101,114,110,97,108,32,102,114,97,109,101,32,98,117,102,102,101,114,115,0,70,114,97,109,101,32,111,117,116,112,117,116,32,99,97,99,104,101,32,105,115,32,102,117,108,108,46,0,73,110,118,97,108,105,100,32,102,114,97,109,101,32,115,105,122,101,32,105,110,32,105,110,100,101,120,0,70,97,105,108,101,100,32,116,111,32,114,101,97,108,108,111,99,97,116,101,32,115,99,114,97,116,99,104,32,98,117,102,102,101,114,0,78,111,116,32,115,117,112,112,111,114,116,101,100,32,105,110,32,102,114,97,109,101,32,112,97,114,97,108,108,101,108,32,100,101,99,111,100,101,0,73,110,118,97,108,105,100,32,117,115,97,103,101,32,111,102,32,115,101,103,101,109,101,110,116,32,102,101,97,116,117,114,101,32,111,110,32,115,109,97,108,108,32,98,108,111,99,107,115,0,73,110,118,97,108,105,100,32,102,114,97,109,101,32,109,97,114,107,101,114,0,85,110,115,117,112,112,111,114,116,101,100,32,98,105,116,115,116,114,101,97,109,32,112,114,111,102,105,108,101,0,66,117,102,102,101,114,32,37,100,32,100,111,101,115,32,110,111,116,32,99,111,110,116,97,105,110,32,97,32,100,101,99,111,100,101,100,32,102,114,97,109,101,0,73,110,118,97,108,105,100,32,102,114,97,109,101,32,115,121,110,99,32,99,111,100,101,0,70,97,105,108,101,100,32,116,111,32,100,101,99,111,100,101,32,102,114,97,109,101,32,115,105,122,101,0,73,110,118,97,108,105,100,32,102,114,97,109,101,32,115,105,122,101,0,82,101,102,101,114,101,110,99,101,100,32,102,114,97,109,101,32,104,97,115,32,105,110,118,97,108,105,100,32,115,105,122,101,0,82,101,102,101,114,101,110,99,101,100,32,102,114,97,109,101,32,104,97,115,32,105,110,99,111,109,112,97,116,105,98,108,101,32,99,111,108,111,114,32,102,111,114,109,97,116,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,102,114,97,109,101,32,98,117,102,102,101,114,0,1,0,2,3,75,101,121,102,114,97,109,101,32,47,32,105,110,116,114,97,45,111,110,108,121,32,102,114,97,109,101,32,114,101,113,117,105,114,101,100,32,116,111,32,114,101,115,101,116,32,100,101,99,111,100,101,114,32,115,116,97,116,101,0,73,110,118,97,108,105,100,32,110,117,109,98,101,114,32,111,102,32,116,105,108,101,32,99,111,108,117,109,110,115,0,73,110,118,97,108,105,100,32,104,101,97,100,101,114,32,115,105,122,101,0,84,114,117,110,99,97,116,101,100,32,112,97,99,107,101,116,32,111,114,32,99,111,114,114,117,112,116,32,104,101,97,100,101,114,32,108,101,110,103,116,104,0,85,110,105,110,105,116,105,97,108,105,122,101,100,32,101,110,116,114,111,112,121,32,99,111,110,116,101,120,116,46,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,98,111,111,108,32,100,101,99,111,100,101,114,32,48,0,68,101,99,111,100,101,32,102,97,105,108,101,100,46,32,70,114,97,109,101,32,100,97,116,97,32,104,101,97,100,101,114,32,105,115,32,99,111,114,114,117,112,116,101,100,46,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,112,98,105,45,62,116,105,108,101,95,119,111,114,107,101,114,95,100,97,116,97,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,112,98,105,45,62,116,105,108,101,95,119,111,114,107,101,114,115,0,84,105,108,101,32,100,101,99,111,100,101,114,32,116,104,114,101,97,100,32,99,114,101,97,116,105,111,110,32,102,97,105,108,101,100,0,68,101,99,111,100,101,32,102,97,105,108,101,100,46,32,70,114,97,109,101,32,100,97,116,97,32,105,115,32,99,111,114,114,117,112,116,101,100,46,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,112,98,105,45,62,108,102,95,119,111,114,107,101,114,46,100,97,116,97,49,0,76,111,111,112,32,102,105,108,116,101,114,32,116,104,114,101,97,100,32,99,114,101,97,116,105,111,110,32,102,97,105,108,101,100,0,84,114,117,110,99,97,116,101,100,32,112,97,99],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+20480);allocate([107,101,116,32,111,114,32,99,111,114,114,117,112,116,32,116,105,108,101,32,108,101,110,103,116,104,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,98,111,111,108,32,100,101,99,111,100,101,114,32,37,100,0,70,97,105,108,101,100,32,116,111,32,100,101,99,111,100,101,32,116,105,108,101,32,100,97,116,97,0,73,110,118,97,108,105,100,32,98,108,111,99,107,32,115,105,122,101,46,0,82,101,102,101,114,101,110,99,101,32,102,114,97,109,101,32,104,97,115,32,105,110,118,97,108,105,100,32,100,105,109,101,110,115,105,111,110,115,0,84,114,117,110,99,97,116,101,100,32,112,97,99,107,101,116,32,111,114,32,99,111,114,114,117,112,116,32,116,105,108,101,32,115,105,122,101,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,99,111,110,116,101,120,116,32,98,117,102,102,101,114,115,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,99,109,45,62,99,117,114,95,102,114,97,109,101,45,62,109,118,115,0,52,58,50,58,48,32,99,111,108,111,114,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,105,110,32,112,114,111,102,105,108,101,32,49,32,111,114,32,51,0,82,101,115,101,114,118,101,100,32,98,105,116,32,115,101,116,0,52,58,52,58,52,32,99,111,108,111,114,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,105,110,32,112,114,111,102,105,108,101,32,48,32,111,114,32,50,0,84,114,117,110,99,97,116,101,100,32,112,97,99,107,101,116,0,87,111,114,107,101,114,32,37,112,32,102,97,105,108,101,100,32,116,111,32,100,101,99,111,100,101,32,102,114,97,109,101,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,99,109,45,62,102,99,0,70,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,99,109,45,62,102,114,97,109,101,95,99,111,110,116,101,120,116,115,0,78,111,32,39,108,97,115,116,39,32,114,101,102,101,114,101,110,99,101,32,102,114,97,109,101,0,73,110,99,111,114,114,101,99,116,32,98,117,102,102,101,114,32,100,105,109,101,110,115,105,111,110,115,0,73,110,118,97,108,105,100,32,114,101,102,101,114,101,110,99,101,32,102,114,97,109,101,0,73,110,118,97,108,105,100,32,114,101,102,101,114,101,110,99,101,32,102,114,97,109,101,32,109,97,112,0,85,110,97,98,108,101,32,116,111,32,102,105,110,100,32,102,114,101,101,32,102,114,97,109,101,32,98,117,102,102,101,114,0,7,20,33,46,59,72,85,98,111,124,137,150,163,176,189,202,215,228,241,254,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,34,35,36,37,38,39,40,41,42,43,44,45,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,104,105,106,107,108,109,110,112,113,114,115,116,117,118,119,120,121,122,123,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,151,152,153,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,177,178,179,180,181,182,183,184,185,186,187,188,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,206,207,208,209,210,211,212,213,214,216,217,218,219,220,221,222,223,224,225,226,227,229,230,231,232,233,234,235,236,237,238,239,240,242,243,244,245,246,247,248,249,250,251,252,253,253,69,114,114,111,114,32,108,97,117,110,99,104,105,110,103,32,100,101,99,111,100,101,32,116,104,114,101,97,100,58,32,37,100,10,0,108,105,98,118,112,120,32,119,105,108,108,32,117,115,101,32,117,112,32,116,111,32,37,100,32,99,111,114,101,115,10,0,103,111,116,32,109,117,108,116,105,112,108,101,32,102,114,97,109,101,115,32,102,114,111,109,32,86,80,57,32,115,116,114,101,97,109,32,117,110,101,120,112,101,99,116,101,100,108,121,63,0,83,107,105,112,112,105,110,103,32,102,114,97,109,101,32,119,105,116,104,32,117,110,107,110,111,119,110,32,112,105,99,116,117,114,101,32,116,121,112,101,32,37,100,10,0,86,80,88,32,112,114,111,99,101,115,115,95,104,101,97,100,101,114,32,115,104,111,117,108,100,32,110,111,116,32,104,97,112,112,101,110,63,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,46,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,101,109,115,99,114,105,112,116,101,110,95,105,115,95,109,97,105,110,95,114,117,110,116,105,109,101,95,116,104,114,101,97,100,40,41,32,38,38,32,34,101,109,115,99,114,105,112,116,101,110,95,109,97,105,110,95,116,104,114,101,97,100,95,112,114,111,99,101,115,115,95,113,117,101,117,101,100,95,99,97,108,108,115,32,109,117,115,116,32,98,101,32,99,97,108,108,101,100,32,102,114,111,109,32,116,104,101,32,109,97,105,110,32,116,104,114,101,97,100,33,34,0,47,85,115,101,114,115,47,98,114,105,111,110,47,115,114,99,47,101,109,115,100,107,95,112,111,114,116,97,98,108,101,47,101,109,115,99,114,105,112,116,101,110,47,105,110,99,111,109,105,110,103,47,115,121,115,116,101,109,47,108,105,98,47,112,116,104,114,101,97,100,47,108,105,98,114,97,114,121,95,112,116,104,114,101,97,100,46,99,0,101,109,115,99,114,105,112,116,101,110,95,109,97,105,110,95,116,104,114,101,97,100,95,112,114,111,99,101,115,115,95,113,117,101,117,101,100,95,99,97,108,108,115,0,48,32,38,38,32,34,73,110,118,97,108,105,100,32,69,109,115,99,114,105,112,116,101,110,32,112,116,104,114,101,97,100,32,95,100,111,95,99,97,108,108,32,111,112,99,111,100,101,33,34,0,95,100,111,95,99,97,108,108,0,99,97,108,108,0,101,109,115,99,114,105,112,116,101,110,95,97,115,121,110,99,95,114,117,110,95,105,110,95,109,97,105,110,95,116,104,114,101,97,100,0,112,111,115,116,77,101,115,115,97,103,101,40,123,32,99,109,100,58,32,39,112,114,111,99,101,115,115,81,117,101,117,101,100,77,97,105,110,84,104,114,101,97,100,87,111,114,107,39,32,125,41,0,116,104,114,111,119,32,39,67,97,110,99,101,108,101,100,33,39,59,0],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+30720)}var tempDoublePtr;if(ENVIRONMENT_IS_PTHREAD){tempDoublePtr=Module["tempDoublePtr"]}else{tempDoublePtr=Runtime.alignMemory(allocate(12,"i8",ALLOC_STATIC),8)}var PROCINFO={ppid:1,pid:42,sid:42,pgid:42};var __pthread_ptr=0;var __pthread_is_main_runtime_thread=0;var __pthread_is_main_browser_thread=0;function __register_pthread_ptr(pthreadPtr,isMainBrowserThread,isMainRuntimeThread){pthreadPtr=pthreadPtr|0;isMainBrowserThread=isMainBrowserThread|0;isMainRuntimeThread=isMainRuntimeThread|0;__pthread_ptr=pthreadPtr;__pthread_is_main_browser_thread=isMainBrowserThread;__pthread_is_main_runtime_thread=isMainRuntimeThread}var _emscripten_main_thread_process_queued_calls=undefined;var PThread={MAIN_THREAD_ID:1,mainThreadInfo:{schedPolicy:0,schedPrio:0},unusedWorkerPool:[],runningWorkers:[],initMainThreadBlock:(function(){if(ENVIRONMENT_IS_PTHREAD)return undefined;PThread.mainThreadBlock=allocate(244,"i32*",ALLOC_STATIC);__register_pthread_ptr(PThread.mainThreadBlock,!ENVIRONMENT_IS_WORKER,1);for(var i=0;i<244/4;++i)HEAPU32[PThread.mainThreadBlock/4+i]=0;HEAP32[PThread.mainThreadBlock+24>>2]=PThread.mainThreadBlock;var tlsMemory=allocate(128*4,"i32*",ALLOC_STATIC);for(var i=0;i<128;++i)HEAPU32[tlsMemory/4+i]=0;Atomics.store(HEAPU32,PThread.mainThreadBlock+116>>2,tlsMemory);Atomics.store(HEAPU32,PThread.mainThreadBlock+52>>2,PThread.mainThreadBlock);Atomics.store(HEAPU32,PThread.mainThreadBlock+56>>2,PROCINFO.pid)}),pthreads:{},pthreadIdCounter:2,exitHandlers:null,setThreadStatus:(function(){}),runExitHandlers:(function(){if(PThread.exitHandlers!==null){while(PThread.exitHandlers.length>0){PThread.exitHandlers.pop()()}PThread.exitHandlers=null}if(ENVIRONMENT_IS_PTHREAD&&threadInfoStruct)___pthread_tsd_run_dtors()}),threadExit:(function(exitCode){var tb=_pthread_self();if(tb){Atomics.store(HEAPU32,tb+4>>2,exitCode);Atomics.store(HEAPU32,tb+0>>2,1);Atomics.store(HEAPU32,tb+72>>2,1);Atomics.store(HEAPU32,tb+76>>2,0);PThread.runExitHandlers();_emscripten_futex_wake(tb+0,2147483647);__register_pthread_ptr(0,0,0);threadInfoStruct=0;if(ENVIRONMENT_IS_PTHREAD){var transferList=[];postMessage({cmd:"exit"})}}}),threadCancel:(function(){PThread.runExitHandlers();Atomics.store(HEAPU32,threadInfoStruct+4>>2,-1);Atomics.store(HEAPU32,threadInfoStruct+0>>2,1);_emscripten_futex_wake(threadInfoStruct+0,2147483647);threadInfoStruct=selfThreadId=0;__register_pthread_ptr(0,0,0);postMessage({cmd:"cancelDone"})}),terminateAllThreads:(function(){for(var t in PThread.pthreads){var pthread=PThread.pthreads[t];if(pthread){PThread.freeThreadData(pthread);if(pthread.worker)pthread.worker.terminate()}}PThread.pthreads={};for(var t in PThread.unusedWorkerPool){var pthread=PThread.unusedWorkerPool[t];if(pthread){PThread.freeThreadData(pthread);if(pthread.worker)pthread.worker.terminate()}}PThread.unusedWorkerPool=[];for(var t in PThread.runningWorkers){var pthread=PThread.runningWorkers[t];if(pthread){PThread.freeThreadData(pthread);if(pthread.worker)pthread.worker.terminate()}}PThread.runningWorkers=[]}),freeThreadData:(function(pthread){if(!pthread)return;if(pthread.threadInfoStruct){var tlsMemory=HEAP32[pthread.threadInfoStruct+116>>2];HEAP32[pthread.threadInfoStruct+116>>2]=0;_free(pthread.tlsMemory);_free(pthread.threadInfoStruct)}pthread.threadInfoStruct=0;if(pthread.allocatedOwnStack&&pthread.stackBase)_free(pthread.stackBase);pthread.stackBase=0;if(pthread.worker)pthread.worker.pthread=null}),receiveObjectTransfer:(function(data){}),allocateUnusedWorkers:(function(numWorkers,onFinishedLoading){if(typeof SharedArrayBuffer==="undefined")return;Module["print"]("Preallocating "+numWorkers+" workers for a pthread spawn pool.");var numWorkersLoaded=0;for(var i=0;i<numWorkers;++i){var pthreadMainJs="pthread-main.js";if(typeof Module["locateFile"]==="function")pthreadMainJs=Module["locateFile"](pthreadMainJs);else if(Module["pthreadMainPrefixURL"])pthreadMainJs=Module["pthreadMainPrefixURL"]+pthreadMainJs;var worker=new Worker(pthreadMainJs);worker.onmessage=(function(e){if(e.data.targetThread&&e.data.targetThread!=_pthread_self()){var thread=PThread.pthreads[e.data.targetThread];if(thread){thread.worker.postMessage(e.data,e.data.transferList)}else{console.error('Internal error! Worker sent a message "'+e.data.cmd+'" to target pthread '+e.data.targetThread+", but that thread no longer exists!")}return}if(e.data.cmd==="processQueuedMainThreadWork"){_emscripten_main_thread_process_queued_calls()}else if(e.data.cmd==="spawnThread"){__spawn_thread(e.data)}else if(e.data.cmd==="cleanupThread"){__cleanup_thread(e.data.thread)}else if(e.data.cmd==="killThread"){__kill_thread(e.data.thread)}else if(e.data.cmd==="cancelThread"){__cancel_thread(e.data.thread)}else if(e.data.cmd==="loaded"){++numWorkersLoaded;if(numWorkersLoaded===numWorkers&&onFinishedLoading){onFinishedLoading()}}else if(e.data.cmd==="print"){Module["print"]("Thread "+e.data.threadId+": "+e.data.text)}else if(e.data.cmd==="printErr"){Module["printErr"]("Thread "+e.data.threadId+": "+e.data.text)}else if(e.data.cmd==="alert"){alert("Thread "+e.data.threadId+": "+e.data.text)}else if(e.data.cmd==="exit"){}else if(e.data.cmd==="cancelDone"){PThread.freeThreadData(worker.pthread);worker.pthread=undefined;PThread.unusedWorkerPool.push(worker);PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(worker.pthread),1)}else if(e.data.cmd==="objectTransfer"){PThread.receiveObjectTransfer(e.data)}else{Module["printErr"]("worker sent an unknown command "+e.data.cmd)}});worker.onerror=(function(e){Module["printErr"]("pthread sent an error! "+e.filename+":"+e.lineno+": "+e.message)});var tempDoublePtr=getMemory(8);worker.postMessage({cmd:"load",url:currentScriptUrl,buffer:HEAPU8.buffer,tempDoublePtr:tempDoublePtr,TOTAL_MEMORY:TOTAL_MEMORY,STATICTOP:STATICTOP,DYNAMIC_BASE:DYNAMIC_BASE,DYNAMICTOP_PTR:DYNAMICTOP_PTR,PthreadWorkerInit:PthreadWorkerInit,modularize:1,moduleExportName:"OGVDecoderVideoVP9MT"});PThread.unusedWorkerPool.push(worker)}}),getNewWorker:(function(){if(PThread.unusedWorkerPool.length==0)PThread.allocateUnusedWorkers(1);if(PThread.unusedWorkerPool.length>0)return PThread.unusedWorkerPool.pop();else return null}),busySpinWait:(function(msecs){var t=performance.now()+msecs;while(performance.now()<t){}}),setStackSpace:(function(stackBase,stackMax){STACK_BASE=STACKTOP=stackBase;STACK_MAX=stackMax;assert(STACK_BASE!=0);assert(STACK_MAX>STACK_BASE);Module.Runtime.establishStackSpace(stackBase,stackMax)}),registerPthreadPtr:(function(pthreadPtr,isMainBrowserThread,isMainRuntimeThread){__register_pthread_ptr(pthreadPtr,isMainBrowserThread,isMainRuntimeThread)}),wakeAllThreads:(function(){var tb=_pthread_self();_emscripten_futex_wake(tb+0,2147483647)}),runThreadFunc:(function(funcPtr,arg){if(typeof asm["dynCall_ii"]!=="undefined"){result=asm.dynCall_ii(funcPtr,arg)}else{result=asm.dynCall_i(funcPtr)}})};function _emscripten_set_current_thread_status_js(newStatus){}Module["_emscripten_set_current_thread_status"]=_emscripten_set_current_thread_status;function _ogvjs_callback_async_complete(ret,cpuTime){var callback=Module.callbacks.shift();Module.cpuTime+=cpuTime;callback(ret);return}Module["_i64Subtract"]=_i64Subtract;function ___setErrNo(value){if(Module["___errno_location"])HEAP32[Module["___errno_location"]()>>2]=value;return value}var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};function _sysconf(name){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_1(72,name);switch(name){case 30:return PAGE_SIZE;case 85:var maxHeapSize=2*1024*1024*1024-16777216;maxHeapSize=HEAPU8.length;return maxHeapSize/PAGE_SIZE;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:{if(typeof navigator==="object")return navigator["hardwareConcurrency"]||1;return 1}}___setErrNo(ERRNO_CODES.EINVAL);return-1}Module["_memset"]=_memset;var __main_thread_futex_wait_address;if(ENVIRONMENT_IS_PTHREAD)__main_thread_futex_wait_address=PthreadWorkerInit.__main_thread_futex_wait_address;else PthreadWorkerInit.__main_thread_futex_wait_address=__main_thread_futex_wait_address=allocate(1,"i32*",ALLOC_STATIC);function _emscripten_futex_wake_or_requeue(addr,count,addr2,cmpValue){if(addr<=0||addr2<=0||addr>=HEAP8.length||addr2>=HEAP8.length||count<0||addr&3!=0||addr2&3!=0){return-22}var mainThreadWaitAddress=Atomics.load(HEAP32,__main_thread_futex_wait_address>>2);var mainThreadWoken=0;if(mainThreadWaitAddress==addr){var val1=Atomics.load(HEAP32,addr>>2);if(val1!=cmpValue)return-11;var newMainThreadWaitAddress=count>0?0:addr2;var loadedAddr=Atomics.compareExchange(HEAP32,__main_thread_futex_wait_address>>2,mainThreadWaitAddress,newMainThreadWaitAddress);if(loadedAddr==mainThreadWaitAddress&&count>0){--count;mainThreadWoken=1}}var ret=Atomics.wakeOrRequeue(HEAP32,addr>>2,count,addr2>>2,cmpValue);if(ret==Atomics.NOTEQUAL)return-11;if(ret>=0)return ret+mainThreadWoken;throw"Atomics.wakeOrRequeue returned an unexpected value "+ret}function ___pthread_setcancelstate(){return 0}function _atexit(func,arg){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_2(110,func,arg);__ATEXIT__.unshift({func:func,arg:arg})}var _tzname;if(ENVIRONMENT_IS_PTHREAD)_tzname=PthreadWorkerInit._tzname;else PthreadWorkerInit._tzname=_tzname=allocate(8,"i32*",ALLOC_STATIC);var _daylight;if(ENVIRONMENT_IS_PTHREAD)_daylight=PthreadWorkerInit._daylight;else PthreadWorkerInit._daylight=_daylight=allocate(1,"i32*",ALLOC_STATIC);var _timezone;if(ENVIRONMENT_IS_PTHREAD)_timezone=PthreadWorkerInit._timezone;else PthreadWorkerInit._timezone=_timezone=allocate(1,"i32*",ALLOC_STATIC);function _tzset(){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_0(119);if(_tzset.called)return;_tzset.called=true;HEAP32[_timezone>>2]=-(new Date).getTimezoneOffset()*60;var winter=new Date(2e3,0,1);var summer=new Date(2e3,6,1);HEAP32[_daylight>>2]=Number(winter.getTimezoneOffset()!=summer.getTimezoneOffset());function extractZone(date){var match=date.toTimeString().match(/\(([A-Za-z ]+)\)$/);return match?match[1]:"GMT"}var winterName=extractZone(winter);var summerName=extractZone(summer);var winterNamePtr=allocate(intArrayFromString(winterName),"i8",ALLOC_NORMAL);var summerNamePtr=allocate(intArrayFromString(summerName),"i8",ALLOC_NORMAL);if(summer.getTimezoneOffset()<winter.getTimezoneOffset()){HEAP32[_tzname>>2]=winterNamePtr;HEAP32[_tzname+4>>2]=summerNamePtr}else{HEAP32[_tzname>>2]=summerNamePtr;HEAP32[_tzname+4>>2]=winterNamePtr}}function _emscripten_futex_wait(addr,val,timeout){if(addr<=0||addr>HEAP8.length||addr&3!=0)return-22;if(ENVIRONMENT_IS_WORKER){var ret=Atomics.wait(HEAP32,addr>>2,val,timeout);if(ret==="timed-out")return-110;if(ret==="not-equal")return-11;if(ret==="ok")return 0;throw"Atomics.wait returned an unexpected value "+ret}else{var loadedVal=Atomics.load(HEAP32,addr>>2);if(val!=loadedVal)return-11;var tNow=performance.now();var tEnd=tNow+timeout;Atomics.store(HEAP32,__main_thread_futex_wait_address>>2,addr);var ourWaitAddress=addr;while(addr==ourWaitAddress){tNow=performance.now();if(tNow>tEnd){return-110}_emscripten_main_thread_process_queued_calls();addr=Atomics.load(HEAP32,__main_thread_futex_wait_address>>2)}return 0}}function ___assert_fail(condition,filename,line,func){ABORT=true;throw"Assertion failed: "+Pointer_stringify(condition)+", at: "+[filename?Pointer_stringify(filename):"unknown filename",line,func?Pointer_stringify(func):"unknown function"]+" at "+stackTrace()}function __spawn_thread(threadParams){if(ENVIRONMENT_IS_PTHREAD)throw"Internal Error! _spawn_thread() can only ever be called from main application thread!";var worker=PThread.getNewWorker();if(worker.pthread!==undefined)throw"Internal error!";if(!threadParams.pthread_ptr)throw"Internal error, no pthread ptr!";PThread.runningWorkers.push(worker);var tlsMemory=_malloc(128*4);for(var i=0;i<128;++i){HEAP32[tlsMemory+i*4>>2]=0}var pthread=PThread.pthreads[threadParams.pthread_ptr]={worker:worker,stackBase:threadParams.stackBase,stackSize:threadParams.stackSize,allocatedOwnStack:threadParams.allocatedOwnStack,thread:threadParams.pthread_ptr,threadInfoStruct:threadParams.pthread_ptr};Atomics.store(HEAPU32,pthread.threadInfoStruct+0>>2,0);Atomics.store(HEAPU32,pthread.threadInfoStruct+4>>2,0);Atomics.store(HEAPU32,pthread.threadInfoStruct+20>>2,0);Atomics.store(HEAPU32,pthread.threadInfoStruct+80>>2,threadParams.detached);Atomics.store(HEAPU32,pthread.threadInfoStruct+116>>2,tlsMemory);Atomics.store(HEAPU32,pthread.threadInfoStruct+60>>2,0);Atomics.store(HEAPU32,pthread.threadInfoStruct+52>>2,pthread.threadInfoStruct);Atomics.store(HEAPU32,pthread.threadInfoStruct+56>>2,PROCINFO.pid);Atomics.store(HEAPU32,pthread.threadInfoStruct+120>>2,threadParams.stackSize);Atomics.store(HEAPU32,pthread.threadInfoStruct+96>>2,threadParams.stackSize);Atomics.store(HEAPU32,pthread.threadInfoStruct+92>>2,threadParams.stackBase);Atomics.store(HEAPU32,pthread.threadInfoStruct+120+8>>2,threadParams.stackBase);Atomics.store(HEAPU32,pthread.threadInfoStruct+120+12>>2,threadParams.detached);Atomics.store(HEAPU32,pthread.threadInfoStruct+120+20>>2,threadParams.schedPolicy);Atomics.store(HEAPU32,pthread.threadInfoStruct+120+24>>2,threadParams.schedPrio);var global_libc=_emscripten_get_global_libc();var global_locale=global_libc+40;Atomics.store(HEAPU32,pthread.threadInfoStruct+188>>2,global_locale);worker.pthread=pthread;worker.postMessage({cmd:"run",start_routine:threadParams.startRoutine,arg:threadParams.arg,threadInfoStruct:threadParams.pthread_ptr,selfThreadId:threadParams.pthread_ptr,parentThreadId:threadParams.parent_pthread_ptr,stackBase:threadParams.stackBase,stackSize:threadParams.stackSize},threadParams.transferList)}function _pthread_getschedparam(thread,policy,schedparam){if(!policy&&!schedparam)return ERRNO_CODES.EINVAL;if(!thread){Module["printErr"]("pthread_getschedparam called with a null thread pointer!");return ERRNO_CODES.ESRCH}var self=HEAP32[thread+24>>2];if(self!=thread){Module["printErr"]("pthread_getschedparam attempted on thread "+thread+", which does not point to a valid thread, or does not exist anymore!");return ERRNO_CODES.ESRCH}var schedPolicy=Atomics.load(HEAPU32,thread+120+20>>2);var schedPrio=Atomics.load(HEAPU32,thread+120+24>>2);if(policy)HEAP32[policy>>2]=schedPolicy;if(schedparam)HEAP32[schedparam>>2]=schedPrio;return 0}function _pthread_self(){return __pthread_ptr|0}function _pthread_create(pthread_ptr,attr,start_routine,arg){if(typeof SharedArrayBuffer==="undefined"){Module["printErr"]("Current environment does not support SharedArrayBuffer, pthreads are not available!");return 11}if(!pthread_ptr){Module["printErr"]("pthread_create called with a null thread pointer!");return 22}var transferList=[];if(ENVIRONMENT_IS_PTHREAD&&transferList.length==0){return _emscripten_sync_run_in_main_thread_4(137,pthread_ptr,attr,start_routine,arg)}var stackSize=0;var stackBase=0;var detached=0;var schedPolicy=0;var schedPrio=0;if(attr){stackSize=HEAP32[attr>>2];stackBase=HEAP32[attr+8>>2];detached=HEAP32[attr+12>>2]!=0;var inheritSched=HEAP32[attr+16>>2]==0;if(inheritSched){var prevSchedPolicy=HEAP32[attr+20>>2];var prevSchedPrio=HEAP32[attr+24>>2];_pthread_getschedparam(_pthread_self(),attr+20,attr+24);schedPolicy=HEAP32[attr+20>>2];schedPrio=HEAP32[attr+24>>2];HEAP32[attr+20>>2]=prevSchedPolicy;HEAP32[attr+24>>2]=prevSchedPrio}else{schedPolicy=HEAP32[attr+20>>2];schedPrio=HEAP32[attr+24>>2]}}stackSize+=81920;var allocatedOwnStack=stackBase==0;if(allocatedOwnStack){stackBase=_malloc(stackSize)}else{stackBase-=stackSize;assert(stackBase>0)}var threadInfoStruct=_malloc(244);for(var i=0;i<244>>2;++i)HEAPU32[(threadInfoStruct>>2)+i]=0;HEAP32[pthread_ptr>>2]=threadInfoStruct;HEAP32[threadInfoStruct+24>>2]=threadInfoStruct;var headPtr=threadInfoStruct+168;HEAP32[headPtr>>2]=headPtr;var threadParams={stackBase:stackBase,stackSize:stackSize,allocatedOwnStack:allocatedOwnStack,schedPolicy:schedPolicy,schedPrio:schedPrio,detached:detached,startRoutine:start_routine,pthread_ptr:threadInfoStruct,parent_pthread_ptr:_pthread_self(),arg:arg,transferList:transferList};if(ENVIRONMENT_IS_PTHREAD){threadParams.cmd="spawnThread";postMessage(threadParams,transferList)}else{__spawn_thread(threadParams)}return 0}function _chroot(path){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_1(37,path);___setErrNo(ERRNO_CODES.EACCES);return-1}Module["_i64Add"]=_i64Add;var _environ;if(ENVIRONMENT_IS_PTHREAD)_environ=PthreadWorkerInit._environ;else PthreadWorkerInit._environ=_environ=allocate(1,"i32*",ALLOC_STATIC);function ___buildEnvironment(env){var MAX_ENV_VALUES=64;var TOTAL_ENV_SIZE=1024;var poolPtr;var envPtr;if(!___buildEnvironment.called){___buildEnvironment.called=true;ENV["USER"]=ENV["LOGNAME"]="web_user";ENV["PATH"]="/";ENV["PWD"]="/";ENV["HOME"]="/home/web_user";ENV["LANG"]="C";ENV["_"]=Module["thisProgram"];poolPtr=allocate(TOTAL_ENV_SIZE,"i8",ALLOC_STATIC);envPtr=allocate(MAX_ENV_VALUES*4,"i8*",ALLOC_STATIC);HEAP32[envPtr>>2]=poolPtr;HEAP32[_environ>>2]=envPtr}else{envPtr=HEAP32[_environ>>2];poolPtr=HEAP32[envPtr>>2]}var strings=[];var totalSize=0;for(var key in env){if(typeof env[key]==="string"){var line=key+"="+env[key];strings.push(line);totalSize+=line.length}}if(totalSize>TOTAL_ENV_SIZE){throw new Error("Environment size exceeded TOTAL_ENV_SIZE!")}var ptrSize=4;for(var i=0;i<strings.length;i++){var line=strings[i];writeAsciiToMemory(line,poolPtr);HEAP32[envPtr+i*ptrSize>>2]=poolPtr;poolPtr+=line.length+1}HEAP32[envPtr+strings.length*ptrSize>>2]=0}var ENV={};function _putenv(string){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_1(115,string);if(string===0){___setErrNo(ERRNO_CODES.EINVAL);return-1}string=Pointer_stringify(string);var splitPoint=string.indexOf("=");if(string===""||string.indexOf("=")===-1){___setErrNo(ERRNO_CODES.EINVAL);return-1}var name=string.slice(0,splitPoint);var value=string.slice(splitPoint+1);if(!(name in ENV)||ENV[name]!==value){ENV[name]=value;___buildEnvironment(ENV)}return 0}function _emscripten_force_num_logical_cores(cores){HEAP32[__num_logical_cores>>2]=cores}var __num_logical_cores;if(ENVIRONMENT_IS_PTHREAD)__num_logical_cores=PthreadWorkerInit.__num_logical_cores;else{PthreadWorkerInit.__num_logical_cores=__num_logical_cores=allocate(1,"i32*",ALLOC_STATIC);HEAPU32[__num_logical_cores>>2]=navigator["hardwareConcurrency"]||4}function _emscripten_num_logical_cores(){return HEAP32[__num_logical_cores>>2]}function _realloc(){throw"bad"}Module["_realloc"]=_realloc;Module["_saveSetjmp"]=_saveSetjmp;Module["_bitshift64Shl"]=_bitshift64Shl;function _setenv(envname,envval,overwrite){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_3(113,envname,envval,overwrite);if(envname===0){___setErrNo(ERRNO_CODES.EINVAL);return-1}var name=Pointer_stringify(envname);var val=Pointer_stringify(envval);if(name===""||name.indexOf("=")!==-1){___setErrNo(ERRNO_CODES.EINVAL);return-1}if(ENV.hasOwnProperty(name)&&!overwrite)return 0;ENV[name]=val;___buildEnvironment(ENV);return 0}function _emscripten_get_now(){abort()}function _ogvjs_callback_frame(bufferY,strideY,bufferCb,strideCb,bufferCr,strideCr,width,height,chromaWidth,chromaHeight){var HEAPU8=Module.HEAPU8,format=Module.videoFormat,countBytesY=strideY*height,countBytesCb=strideCb*chromaHeight,countBytesCr=strideCr*chromaHeight;Module.frameBuffer={format:{width:width,height:height,chromaWidth:chromaWidth,chromaHeight:chromaHeight,cropLeft:format.cropLeft,cropTop:format.cropTop,cropWidth:format.cropWidth,cropHeight:format.cropHeight,displayWidth:format.displayWidth,displayHeight:format.displayHeight},y:{bytes:copyByteArray(HEAPU8.subarray(bufferY,bufferY+countBytesY)),stride:strideY},u:{bytes:copyByteArray(HEAPU8.subarray(bufferCb,bufferCb+countBytesCb)),stride:strideCb},v:{bytes:copyByteArray(HEAPU8.subarray(bufferCr,bufferCr+countBytesCr)),stride:strideCr}}}var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can   access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};var PATH={splitPath:(function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)}),normalizeArray:(function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}),normalize:(function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path}),dirname:(function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir}),basename:(function(path){if(path==="/")return"/";var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)}),extname:(function(path){return PATH.splitPath(path)[3]}),join:(function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))}),join2:(function(l,r){return PATH.normalize(l+"/"+r)}),resolve:(function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter((function(p){return!!p})),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."}),relative:(function(from,to){from=PATH.resolve(from).substr(1);to=PATH.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")})};var TTY={ttys:[],init:(function(){}),shutdown:(function(){}),register:(function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)}),stream_ops:{open:(function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}stream.tty=tty;stream.seekable=false}),close:(function(stream){stream.tty.ops.flush(stream.tty)}),flush:(function(stream){stream.tty.ops.flush(stream.tty)}),read:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=stream.tty.ops.get_char(stream.tty)}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.put_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}for(var i=0;i<length;i++){try{stream.tty.ops.put_char(stream.tty,buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})},default_tty_ops:{get_char:(function(tty){if(!tty.input.length){var result=null;if(ENVIRONMENT_IS_NODE){var BUFSIZE=256;var buf=new Buffer(BUFSIZE);var bytesRead=0;var isPosixPlatform=process.platform!="win32";var fd=process.stdin.fd;if(isPosixPlatform){var usingDevice=false;try{fd=fs.openSync("/dev/stdin","r");usingDevice=true}catch(e){}}try{bytesRead=fs.readSync(fd,buf,0,BUFSIZE,null)}catch(e){if(e.toString().indexOf("EOF")!=-1)bytesRead=0;else throw e}if(usingDevice){fs.closeSync(fd)}if(bytesRead>0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()}),put_char:(function(tty,val){if(val===null||val===10){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}})},default_tty1_ops:{put_char:(function(tty,val){if(val===null||val===10){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}})}};var MEMFS={ops_table:null,mount:(function(mount){return MEMFS.createNode(null,"/",16384|511,0)}),createNode:(function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node}return node}),getFileDataAsRegularArray:(function(node){if(node.contents&&node.contents.subarray){var arr=[];for(var i=0;i<node.usedBytes;++i)arr.push(node.contents[i]);return arr}return node.contents}),getFileDataAsTypedArray:(function(node){if(!node.contents)return new Uint8Array;if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)}),expandFileStorage:(function(node,newCapacity){if(node.contents&&node.contents.subarray&&newCapacity>node.contents.length){node.contents=MEMFS.getFileDataAsRegularArray(node);node.usedBytes=node.contents.length}if(!node.contents||node.contents.subarray){var prevCapacity=node.contents?node.contents.length:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity<CAPACITY_DOUBLING_MAX?2:1.125)|0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return}if(!node.contents&&newCapacity>0)node.contents=[];while(node.contents.length<newCapacity)node.contents.push(0)}),resizeFileStorage:(function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0;return}if(!node.contents||node.contents.subarray){var oldContents=node.contents;node.contents=new Uint8Array(new ArrayBuffer(newSize));if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize;return}if(!node.contents)node.contents=[];if(node.contents.length>newSize)node.contents.length=newSize;else while(node.contents.length<newSize)node.contents.push(0);node.usedBytes=newSize}),node_ops:{getattr:(function(node){var attr={};attr.dev=FS.isChrdev(node.mode)?node.id:1;attr.ino=node.id;attr.mode=node.mode;attr.nlink=1;attr.uid=0;attr.gid=0;attr.rdev=node.rdev;if(FS.isDir(node.mode)){attr.size=4096}else if(FS.isFile(node.mode)){attr.size=node.usedBytes}else if(FS.isLink(node.mode)){attr.size=node.link.length}else{attr.size=0}attr.atime=new Date(node.timestamp);attr.mtime=new Date(node.timestamp);attr.ctime=new Date(node.timestamp);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}if(attr.size!==undefined){MEMFS.resizeFileStorage(node,attr.size)}}),lookup:(function(parent,name){throw FS.genericErrors[ERRNO_CODES.ENOENT]}),mknod:(function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)}),rename:(function(old_node,new_dir,new_name){if(FS.isDir(old_node.mode)){var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(new_node){for(var i in new_node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}}}delete old_node.parent.contents[old_node.name];old_node.name=new_name;new_dir.contents[new_name]=old_node;old_node.parent=new_dir}),unlink:(function(parent,name){delete parent.contents[name]}),rmdir:(function(parent,name){var node=FS.lookupNode(parent,name);for(var i in node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}delete parent.contents[name]}),readdir:(function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries}),symlink:(function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node}),readlink:(function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return node.link})},stream_ops:{read:(function(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);assert(size>=0);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i<size;i++)buffer[offset+i]=contents[position+i]}return size}),write:(function(stream,buffer,offset,length,position,canOwn){if(!length)return 0;var node=stream.node;node.timestamp=Date.now();if(buffer.subarray&&(!node.contents||node.contents.subarray)){if(canOwn){node.contents=buffer.subarray(offset,offset+length);node.usedBytes=length;return length}else if(node.usedBytes===0&&position===0){node.contents=new Uint8Array(buffer.subarray(offset,offset+length));node.usedBytes=length;return length}else if(position+length<=node.usedBytes){node.contents.set(buffer.subarray(offset,offset+length),position);return length}}MEMFS.expandFileStorage(node,position+length);if(node.contents.subarray&&buffer.subarray)node.contents.set(buffer.subarray(offset,offset+length),position);else{for(var i=0;i<length;i++){node.contents[position+i]=buffer[offset+i]}}node.usedBytes=Math.max(node.usedBytes,position+length);return length}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.usedBytes}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position}),allocate:(function(stream,offset,length){MEMFS.expandFileStorage(stream.node,offset+length);stream.node.usedBytes=Math.max(stream.node.usedBytes,offset+length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}var ptr;var allocated;var contents=stream.node.contents;if(!(flags&2)&&(contents.buffer===buffer||contents.buffer===buffer.buffer)){allocated=false;ptr=contents.byteOffset}else{if(position>0||position+length<stream.node.usedBytes){if(contents.subarray){contents=contents.subarray(position,position+length)}else{contents=Array.prototype.slice.call(contents,position,position+length)}}allocated=true;ptr=_malloc(length);if(!ptr){throw new FS.ErrnoError(ERRNO_CODES.ENOMEM)}buffer.set(contents,ptr)}return{ptr:ptr,allocated:allocated}}),msync:(function(stream,buffer,offset,length,mmapFlags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(mmapFlags&2){return 0}var bytesWritten=MEMFS.stream_ops.write(stream,buffer,0,length,offset,false);return 0})}};var IDBFS={dbs:{},indexedDB:(function(){if(typeof indexedDB!=="undefined")return indexedDB;var ret=null;if(typeof window==="object")ret=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;assert(ret,"IDBFS used, but indexedDB not supported");return ret}),DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:(function(mount){return MEMFS.mount.apply(null,arguments)}),syncfs:(function(mount,populate,callback){IDBFS.getLocalSet(mount,(function(err,local){if(err)return callback(err);IDBFS.getRemoteSet(mount,(function(err,remote){if(err)return callback(err);var src=populate?remote:local;var dst=populate?local:remote;IDBFS.reconcile(src,dst,callback)}))}))}),getDB:(function(name,callback){var db=IDBFS.dbs[name];if(db){return callback(null,db)}var req;try{req=IDBFS.indexedDB().open(name,IDBFS.DB_VERSION)}catch(e){return callback(e)}if(!req){return callback("Unable to connect to IndexedDB")}req.onupgradeneeded=(function(e){var db=e.target.result;var transaction=e.target.transaction;var fileStore;if(db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)){fileStore=transaction.objectStore(IDBFS.DB_STORE_NAME)}else{fileStore=db.createObjectStore(IDBFS.DB_STORE_NAME)}if(!fileStore.indexNames.contains("timestamp")){fileStore.createIndex("timestamp","timestamp",{unique:false})}});req.onsuccess=(function(){db=req.result;IDBFS.dbs[name]=db;callback(null,db)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),getLocalSet:(function(mount,callback){var entries={};function isRealDir(p){return p!=="."&&p!==".."}function toAbsolute(root){return(function(p){return PATH.join2(root,p)})}var check=FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));while(check.length){var path=check.pop();var stat;try{stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){check.push.apply(check,FS.readdir(path).filter(isRealDir).map(toAbsolute(path)))}entries[path]={timestamp:stat.mtime}}return callback(null,{type:"local",entries:entries})}),getRemoteSet:(function(mount,callback){var entries={};IDBFS.getDB(mount.mountpoint,(function(err,db){if(err)return callback(err);var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readonly");transaction.onerror=(function(e){callback(this.error);e.preventDefault()});var store=transaction.objectStore(IDBFS.DB_STORE_NAME);var index=store.index("timestamp");index.openKeyCursor().onsuccess=(function(event){var cursor=event.target.result;if(!cursor){return callback(null,{type:"remote",db:db,entries:entries})}entries[cursor.primaryKey]={timestamp:cursor.key};cursor.continue()})}))}),loadLocalEntry:(function(path,callback){var stat,node;try{var lookup=FS.lookupPath(path);node=lookup.node;stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){return callback(null,{timestamp:stat.mtime,mode:stat.mode})}else if(FS.isFile(stat.mode)){node.contents=MEMFS.getFileDataAsTypedArray(node);return callback(null,{timestamp:stat.mtime,mode:stat.mode,contents:node.contents})}else{return callback(new Error("node type not supported"))}}),storeLocalEntry:(function(path,entry,callback){try{if(FS.isDir(entry.mode)){FS.mkdir(path,entry.mode)}else if(FS.isFile(entry.mode)){FS.writeFile(path,entry.contents,{encoding:"binary",canOwn:true})}else{return callback(new Error("node type not supported"))}FS.chmod(path,entry.mode);FS.utime(path,entry.timestamp,entry.timestamp)}catch(e){return callback(e)}callback(null)}),removeLocalEntry:(function(path,callback){try{var lookup=FS.lookupPath(path);var stat=FS.stat(path);if(FS.isDir(stat.mode)){FS.rmdir(path)}else if(FS.isFile(stat.mode)){FS.unlink(path)}}catch(e){return callback(e)}callback(null)}),loadRemoteEntry:(function(store,path,callback){var req=store.get(path);req.onsuccess=(function(event){callback(null,event.target.result)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),storeRemoteEntry:(function(store,path,entry,callback){var req=store.put(entry,path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),removeRemoteEntry:(function(store,path,callback){var req=store.delete(path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),reconcile:(function(src,dst,callback){var total=0;var create=[];Object.keys(src.entries).forEach((function(key){var e=src.entries[key];var e2=dst.entries[key];if(!e2||e.timestamp>e2.timestamp){create.push(key);total++}}));var remove=[];Object.keys(dst.entries).forEach((function(key){var e=dst.entries[key];var e2=src.entries[key];if(!e2){remove.push(key);total++}}));if(!total){return callback(null)}var completed=0;var db=src.type==="remote"?src.db:dst.db;var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readwrite");var store=transaction.objectStore(IDBFS.DB_STORE_NAME);function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=total){return callback(null)}}transaction.onerror=(function(e){done(this.error);e.preventDefault()});create.sort().forEach((function(path){if(dst.type==="local"){IDBFS.loadRemoteEntry(store,path,(function(err,entry){if(err)return done(err);IDBFS.storeLocalEntry(path,entry,done)}))}else{IDBFS.loadLocalEntry(path,(function(err,entry){if(err)return done(err);IDBFS.storeRemoteEntry(store,path,entry,done)}))}}));remove.sort().reverse().forEach((function(path){if(dst.type==="local"){IDBFS.removeLocalEntry(path,done)}else{IDBFS.removeRemoteEntry(store,path,done)}}))})};var NODEFS={isWindows:false,staticInit:(function(){NODEFS.isWindows=!!process.platform.match(/^win/)}),mount:(function(mount){assert(ENVIRONMENT_IS_NODE);return NODEFS.createNode(null,"/",NODEFS.getMode(mount.opts.root),0)}),createNode:(function(parent,name,mode,dev){if(!FS.isDir(mode)&&!FS.isFile(mode)&&!FS.isLink(mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=FS.createNode(parent,name,mode);node.node_ops=NODEFS.node_ops;node.stream_ops=NODEFS.stream_ops;return node}),getMode:(function(path){var stat;try{stat=fs.lstatSync(path);if(NODEFS.isWindows){stat.mode=stat.mode|(stat.mode&146)>>1}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return stat.mode}),realPath:(function(node){var parts=[];while(node.parent!==node){parts.push(node.name);node=node.parent}parts.push(node.mount.opts.root);parts.reverse();return PATH.join.apply(null,parts)}),flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:(function(flags){flags&=~2097152;flags&=~2048;flags&=~32768;flags&=~524288;if(flags in NODEFS.flagsToPermissionStringMap){return NODEFS.flagsToPermissionStringMap[flags]}else{throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}}),node_ops:{getattr:(function(node){var path=NODEFS.realPath(node);var stat;try{stat=fs.lstatSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(NODEFS.isWindows&&!stat.blksize){stat.blksize=4096}if(NODEFS.isWindows&&!stat.blocks){stat.blocks=(stat.size+stat.blksize-1)/stat.blksize|0}return{dev:stat.dev,ino:stat.ino,mode:stat.mode,nlink:stat.nlink,uid:stat.uid,gid:stat.gid,rdev:stat.rdev,size:stat.size,atime:stat.atime,mtime:stat.mtime,ctime:stat.ctime,blksize:stat.blksize,blocks:stat.blocks}}),setattr:(function(node,attr){var path=NODEFS.realPath(node);try{if(attr.mode!==undefined){fs.chmodSync(path,attr.mode);node.mode=attr.mode}if(attr.timestamp!==undefined){var date=new Date(attr.timestamp);fs.utimesSync(path,date,date)}if(attr.size!==undefined){fs.truncateSync(path,attr.size)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),lookup:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);var mode=NODEFS.getMode(path);return NODEFS.createNode(parent,name,mode)}),mknod:(function(parent,name,mode,dev){var node=NODEFS.createNode(parent,name,mode,dev);var path=NODEFS.realPath(node);try{if(FS.isDir(node.mode)){fs.mkdirSync(path,node.mode)}else{fs.writeFileSync(path,"",{mode:node.mode})}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return node}),rename:(function(oldNode,newDir,newName){var oldPath=NODEFS.realPath(oldNode);var newPath=PATH.join2(NODEFS.realPath(newDir),newName);try{fs.renameSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),unlink:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.unlinkSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),rmdir:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.rmdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readdir:(function(node){var path=NODEFS.realPath(node);try{return fs.readdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),symlink:(function(parent,newName,oldPath){var newPath=PATH.join2(NODEFS.realPath(parent),newName);try{fs.symlinkSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readlink:(function(node){var path=NODEFS.realPath(node);try{path=fs.readlinkSync(path);path=NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root),path);return path}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}})},stream_ops:{open:(function(stream){var path=NODEFS.realPath(stream.node);try{if(FS.isFile(stream.node.mode)){stream.nfd=fs.openSync(path,NODEFS.flagsToPermissionString(stream.flags))}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),close:(function(stream){try{if(FS.isFile(stream.node.mode)&&stream.nfd){fs.closeSync(stream.nfd)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),read:(function(stream,buffer,offset,length,position){if(length===0)return 0;var nbuffer=new Buffer(length);var res;try{res=fs.readSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(res>0){for(var i=0;i<res;i++){buffer[offset+i]=nbuffer[i]}}return res}),write:(function(stream,buffer,offset,length,position){var nbuffer=new Buffer(buffer.subarray(offset,offset+length));var res;try{res=fs.writeSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}return res}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){try{var stat=fs.fstatSync(stream.nfd);position+=stat.size}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position})}};var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:(function(mount){assert(ENVIRONMENT_IS_WORKER);if(!WORKERFS.reader)WORKERFS.reader=new FileReaderSync;var root=WORKERFS.createNode(null,"/",WORKERFS.DIR_MODE,0);var createdParents={};function ensureParent(path){var parts=path.split("/");var parent=root;for(var i=0;i<parts.length-1;i++){var curr=parts.slice(0,i+1).join("/");if(!createdParents[curr]){createdParents[curr]=WORKERFS.createNode(parent,parts[i],WORKERFS.DIR_MODE,0)}parent=createdParents[curr]}return parent}function base(path){var parts=path.split("/");return parts[parts.length-1]}Array.prototype.forEach.call(mount.opts["files"]||[],(function(file){WORKERFS.createNode(ensureParent(file.name),base(file.name),WORKERFS.FILE_MODE,0,file,file.lastModifiedDate)}));(mount.opts["blobs"]||[]).forEach((function(obj){WORKERFS.createNode(ensureParent(obj["name"]),base(obj["name"]),WORKERFS.FILE_MODE,0,obj["data"])}));(mount.opts["packages"]||[]).forEach((function(pack){pack["metadata"].files.forEach((function(file){var name=file.filename.substr(1);WORKERFS.createNode(ensureParent(name),base(name),WORKERFS.FILE_MODE,0,pack["blob"].slice(file.start,file.end))}))}));return root}),createNode:(function(parent,name,mode,dev,contents,mtime){var node=FS.createNode(parent,name,mode);node.mode=mode;node.node_ops=WORKERFS.node_ops;node.stream_ops=WORKERFS.stream_ops;node.timestamp=(mtime||new Date).getTime();assert(WORKERFS.FILE_MODE!==WORKERFS.DIR_MODE);if(mode===WORKERFS.FILE_MODE){node.size=contents.size;node.contents=contents}else{node.size=4096;node.contents={}}if(parent){parent.contents[name]=node}return node}),node_ops:{getattr:(function(node){return{dev:1,ino:undefined,mode:node.mode,nlink:1,uid:0,gid:0,rdev:undefined,size:node.size,atime:new Date(node.timestamp),mtime:new Date(node.timestamp),ctime:new Date(node.timestamp),blksize:4096,blocks:Math.ceil(node.size/4096)}}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}}),lookup:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}),mknod:(function(parent,name,mode,dev){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),rename:(function(oldNode,newDir,newName){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),unlink:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),rmdir:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),readdir:(function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries}),symlink:(function(parent,newName,oldPath){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),readlink:(function(node){throw new FS.ErrnoError(ERRNO_CODES.EPERM)})},stream_ops:{read:(function(stream,buffer,offset,length,position){if(position>=stream.node.size)return 0;var chunk=stream.node.contents.slice(position,position+length);var ab=WORKERFS.reader.readAsArrayBuffer(chunk);buffer.set(new Uint8Array(ab),offset);return chunk.size}),write:(function(stream,buffer,offset,length,position){throw new FS.ErrnoError(ERRNO_CODES.EIO)}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.size}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position})}};var _stdin;if(ENVIRONMENT_IS_PTHREAD)_stdin=PthreadWorkerInit._stdin;else PthreadWorkerInit._stdin=_stdin=allocate(1,"i32*",ALLOC_STATIC);var _stdout;if(ENVIRONMENT_IS_PTHREAD)_stdout=PthreadWorkerInit._stdout;else PthreadWorkerInit._stdout=_stdout=allocate(1,"i32*",ALLOC_STATIC);var _stderr;if(ENVIRONMENT_IS_PTHREAD)_stderr=PthreadWorkerInit._stderr;else PthreadWorkerInit._stderr=_stderr=allocate(1,"i32*",ALLOC_STATIC);var FS={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:(function(e){if(!(e instanceof FS.ErrnoError))throw e+" : "+stackTrace();return ___setErrNo(e.errno)}),lookupPath:(function(path,opts){path=PATH.resolve(FS.cwd(),path);opts=opts||{};if(!path)return{path:"",node:null};var defaults={follow_mount:true,recurse_count:0};for(var key in defaults){if(opts[key]===undefined){opts[key]=defaults[key]}}if(opts.recurse_count>8){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}var parts=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),false);var current=FS.root;var current_path="/";for(var i=0;i<parts.length;i++){var islast=i===parts.length-1;if(islast&&opts.parent){break}current=FS.lookupNode(current,parts[i]);current_path=PATH.join2(current_path,parts[i]);if(FS.isMountpoint(current)){if(!islast||islast&&opts.follow_mount){current=current.mounted.root}}if(!islast||opts.follow){var count=0;while(FS.isLink(current.mode)){var link=FS.readlink(current_path);current_path=PATH.resolve(PATH.dirname(current_path),link);var lookup=FS.lookupPath(current_path,{recurse_count:opts.recurse_count});current=lookup.node;if(count++>40){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}}}}return{path:current_path,node:current}}),getPath:(function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}}),hashName:(function(parentid,name){var hash=0;for(var i=0;i<name.length;i++){hash=(hash<<5)-hash+name.charCodeAt(i)|0}return(parentid+hash>>>0)%FS.nameTable.length}),hashAddNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node}),hashRemoveNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}}),lookupNode:(function(parent,name){var err=FS.mayLookup(parent);if(err){throw new FS.ErrnoError(err,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)}),createNode:(function(parent,name,mode,rdev){if(!FS.FSNode){FS.FSNode=(function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev});FS.FSNode.prototype={};var readMode=292|73;var writeMode=146;Object.defineProperties(FS.FSNode.prototype,{read:{get:(function(){return(this.mode&readMode)===readMode}),set:(function(val){val?this.mode|=readMode:this.mode&=~readMode})},write:{get:(function(){return(this.mode&writeMode)===writeMode}),set:(function(val){val?this.mode|=writeMode:this.mode&=~writeMode})},isFolder:{get:(function(){return FS.isDir(this.mode)})},isDevice:{get:(function(){return FS.isChrdev(this.mode)})}})}var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node}),destroyNode:(function(node){FS.hashRemoveNode(node)}),isRoot:(function(node){return node===node.parent}),isMountpoint:(function(node){return!!node.mounted}),isFile:(function(mode){return(mode&61440)===32768}),isDir:(function(mode){return(mode&61440)===16384}),isLink:(function(mode){return(mode&61440)===40960}),isChrdev:(function(mode){return(mode&61440)===8192}),isBlkdev:(function(mode){return(mode&61440)===24576}),isFIFO:(function(mode){return(mode&61440)===4096}),isSocket:(function(mode){return(mode&49152)===49152}),flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:(function(str){var flags=FS.flagModes[str];if(typeof flags==="undefined"){throw new Error("Unknown file open mode: "+str)}return flags}),flagsToPermissionString:(function(flag){var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms}),nodePermissions:(function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf("r")!==-1&&!(node.mode&292)){return ERRNO_CODES.EACCES}else if(perms.indexOf("w")!==-1&&!(node.mode&146)){return ERRNO_CODES.EACCES}else if(perms.indexOf("x")!==-1&&!(node.mode&73)){return ERRNO_CODES.EACCES}return 0}),mayLookup:(function(dir){var err=FS.nodePermissions(dir,"x");if(err)return err;if(!dir.node_ops.lookup)return ERRNO_CODES.EACCES;return 0}),mayCreate:(function(dir,name){try{var node=FS.lookupNode(dir,name);return ERRNO_CODES.EEXIST}catch(e){}return FS.nodePermissions(dir,"wx")}),mayDelete:(function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var err=FS.nodePermissions(dir,"wx");if(err){return err}if(isdir){if(!FS.isDir(node.mode)){return ERRNO_CODES.ENOTDIR}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return ERRNO_CODES.EBUSY}}else{if(FS.isDir(node.mode)){return ERRNO_CODES.EISDIR}}return 0}),mayOpen:(function(node,flags){if(!node){return ERRNO_CODES.ENOENT}if(FS.isLink(node.mode)){return ERRNO_CODES.ELOOP}else if(FS.isDir(node.mode)){if(FS.flagsToPermissionString(flags)!=="r"||flags&512){return ERRNO_CODES.EISDIR}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))}),MAX_OPEN_FDS:4096,nextfd:(function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(ERRNO_CODES.EMFILE)}),getStream:(function(fd){return FS.streams[fd]}),createStream:(function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=(function(){});FS.FSStream.prototype={};Object.defineProperties(FS.FSStream.prototype,{object:{get:(function(){return this.node}),set:(function(val){this.node=val})},isRead:{get:(function(){return(this.flags&2097155)!==1})},isWrite:{get:(function(){return(this.flags&2097155)!==0})},isAppend:{get:(function(){return this.flags&1024})}})}var newStream=new FS.FSStream;for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream}),closeStream:(function(fd){FS.streams[fd]=null}),chrdev_stream_ops:{open:(function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}}),llseek:(function(){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)})},major:(function(dev){return dev>>8}),minor:(function(dev){return dev&255}),makedev:(function(ma,mi){return ma<<8|mi}),registerDevice:(function(dev,ops){FS.devices[dev]={stream_ops:ops}}),getDevice:(function(dev){return FS.devices[dev]}),getMounts:(function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts}),syncfs:(function(populate,callback){if(typeof populate==="function"){callback=populate;populate=false}FS.syncFSRequests++;if(FS.syncFSRequests>1){console.log("warning: "+FS.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work")}var mounts=FS.getMounts(FS.root.mount);var completed=0;function doCallback(err){assert(FS.syncFSRequests>0);FS.syncFSRequests--;return callback(err)}function done(err){if(err){if(!done.errored){done.errored=true;return doCallback(err)}return}if(++completed>=mounts.length){doCallback(null)}}mounts.forEach((function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)}))}),mount:(function(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot}),unmount:(function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach((function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}}));node.mounted=null;var idx=node.mount.mounts.indexOf(mount);assert(idx!==-1);node.mount.mounts.splice(idx,1)}),lookup:(function(parent,name){return parent.node_ops.lookup(parent,name)}),mknod:(function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.mayCreate(parent,name);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.mknod(parent,name,mode,dev)}),create:(function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)}),mkdir:(function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)}),mkdirTree:(function(path,mode){var dirs=path.split("/");var d="";for(var i=0;i<dirs.length;++i){if(!dirs[i])continue;d+="/"+dirs[i];try{FS.mkdir(d,mode)}catch(e){if(e.errno!=ERRNO_CODES.EEXIST)throw e}}}),mkdev:(function(path,mode,dev){if(typeof dev==="undefined"){dev=mode;mode=438}mode|=8192;return FS.mknod(path,mode,dev)}),symlink:(function(oldpath,newpath){if(!PATH.resolve(oldpath)){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var lookup=FS.lookupPath(newpath,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var newname=PATH.basename(newpath);var err=FS.mayCreate(parent,newname);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.symlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.symlink(parent,newname,oldpath)}),rename:(function(old_path,new_path){var old_dirname=PATH.dirname(old_path);var new_dirname=PATH.dirname(new_path);var old_name=PATH.basename(old_path);var new_name=PATH.basename(new_path);var lookup,old_dir,new_dir;try{lookup=FS.lookupPath(old_path,{parent:true});old_dir=lookup.node;lookup=FS.lookupPath(new_path,{parent:true});new_dir=lookup.node}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!old_dir||!new_dir)throw new FS.ErrnoError(ERRNO_CODES.ENOENT);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(ERRNO_CODES.EXDEV)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}relative=PATH.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var err=FS.mayDelete(old_dir,old_name,isdir);if(err){throw new FS.ErrnoError(err)}err=new_node?FS.mayDelete(new_dir,new_name,isdir):FS.mayCreate(new_dir,new_name);if(err){throw new FS.ErrnoError(err)}if(!old_dir.node_ops.rename){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(old_node)||new_node&&FS.isMountpoint(new_node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(new_dir!==old_dir){err=FS.nodePermissions(old_dir,"w");if(err){throw new FS.ErrnoError(err)}}try{if(FS.trackingDelegate["willMovePath"]){FS.trackingDelegate["willMovePath"](old_path,new_path)}}catch(e){console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{FS.hashAddNode(old_node)}try{if(FS.trackingDelegate["onMovePath"])FS.trackingDelegate["onMovePath"](old_path,new_path)}catch(e){console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}}),rmdir:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,true);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.rmdir){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.rmdir(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;if(!node.node_ops.readdir){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}return node.node_ops.readdir(node)}),unlink:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,false);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.unlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.unlink(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readlink:(function(path){var lookup=FS.lookupPath(path);var link=lookup.node;if(!link){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!link.node_ops.readlink){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return PATH.resolve(FS.getPath(link.parent),link.node_ops.readlink(link))}),stat:(function(path,dontFollow){var lookup=FS.lookupPath(path,{follow:!dontFollow});var node=lookup.node;if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!node.node_ops.getattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return node.node_ops.getattr(node)}),lstat:(function(path){return FS.stat(path,true)}),chmod:(function(path,mode,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{mode:mode&4095|node.mode&~4095,timestamp:Date.now()})}),lchmod:(function(path,mode){FS.chmod(path,mode,true)}),fchmod:(function(fd,mode){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chmod(stream.node,mode)}),chown:(function(path,uid,gid,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{timestamp:Date.now()})}),lchown:(function(path,uid,gid){FS.chown(path,uid,gid,true)}),fchown:(function(fd,uid,gid){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chown(stream.node,uid,gid)}),truncate:(function(path,len){if(len<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!FS.isFile(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.nodePermissions(node,"w");if(err){throw new FS.ErrnoError(err)}node.node_ops.setattr(node,{size:len,timestamp:Date.now()})}),ftruncate:(function(fd,len){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}FS.truncate(stream.node,len)}),utime:(function(path,atime,mtime){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;node.node_ops.setattr(node,{timestamp:Math.max(atime,mtime)})}),open:(function(path,flags,mode,fd_start,fd_end){if(path===""){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}flags=typeof flags==="string"?FS.modeStringToFlags(flags):flags;mode=typeof mode==="undefined"?438:mode;if(flags&64){mode=mode&4095|32768}else{mode=0}var node;if(typeof path==="object"){node=path}else{path=PATH.normalize(path);try{var lookup=FS.lookupPath(path,{follow:!(flags&131072)});node=lookup.node}catch(e){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(ERRNO_CODES.EEXIST)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(FS.isChrdev(node.mode)){flags&=~512}if(flags&65536&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}if(!created){var err=FS.mayOpen(node,flags);if(err){throw new FS.ErrnoError(err)}}if(flags&512){FS.truncate(node,0)}flags&=~(128|512);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false},fd_start,fd_end);if(stream.stream_ops.open){stream.stream_ops.open(stream)}if(Module["logReadFiles"]&&!(flags&1)){if(!FS.readFiles)FS.readFiles={};if(!(path in FS.readFiles)){FS.readFiles[path]=1;Module["printErr"]("read file: "+path)}}try{if(FS.trackingDelegate["onOpenFile"]){var trackingFlags=0;if((flags&2097155)!==1){trackingFlags|=FS.tracking.openFlags.READ}if((flags&2097155)!==0){trackingFlags|=FS.tracking.openFlags.WRITE}FS.trackingDelegate["onOpenFile"](path,trackingFlags)}}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: "+e.message)}return stream}),close:(function(stream){if(stream.getdents)stream.getdents=null;try{if(stream.stream_ops.close){stream.stream_ops.close(stream)}}catch(e){throw e}finally{FS.closeStream(stream.fd)}}),llseek:(function(stream,offset,whence){if(!stream.seekable||!stream.stream_ops.llseek){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}stream.position=stream.stream_ops.llseek(stream,offset,whence);stream.ungotten=[];return stream.position}),read:(function(stream,buffer,offset,length,position){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.read){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesRead=stream.stream_ops.read(stream,buffer,offset,length,position);if(!seeking)stream.position+=bytesRead;return bytesRead}),write:(function(stream,buffer,offset,length,position,canOwn){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.write){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if(stream.flags&1024){FS.llseek(stream,0,2)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesWritten=stream.stream_ops.write(stream,buffer,offset,length,position,canOwn);if(!seeking)stream.position+=bytesWritten;try{if(stream.path&&FS.trackingDelegate["onWriteToFile"])FS.trackingDelegate["onWriteToFile"](stream.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return bytesWritten}),allocate:(function(stream,offset,length){if(offset<0||length<=0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(!FS.isFile(stream.node.mode)&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(!stream.stream_ops.allocate){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}stream.stream_ops.allocate(stream,offset,length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EACCES)}if(!stream.stream_ops.mmap){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}return stream.stream_ops.mmap(stream,buffer,offset,length,position,prot,flags)}),msync:(function(stream,buffer,offset,length,mmapFlags){if(!stream||!stream.stream_ops.msync){return 0}return stream.stream_ops.msync(stream,buffer,offset,length,mmapFlags)}),munmap:(function(stream){return 0}),ioctl:(function(stream,cmd,arg){if(!stream.stream_ops.ioctl){throw new FS.ErrnoError(ERRNO_CODES.ENOTTY)}return stream.stream_ops.ioctl(stream,cmd,arg)}),readFile:(function(path,opts){opts=opts||{};opts.flags=opts.flags||"r";opts.encoding=opts.encoding||"binary";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var ret;var stream=FS.open(path,opts.flags);var stat=FS.stat(path);var length=stat.size;var buf=new Uint8Array(length);FS.read(stream,buf,0,length,0);if(opts.encoding==="utf8"){ret=UTF8ArrayToString(buf,0)}else if(opts.encoding==="binary"){ret=buf}FS.close(stream);return ret}),writeFile:(function(path,data,opts){opts=opts||{};opts.flags=opts.flags||"w";opts.encoding=opts.encoding||"utf8";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var stream=FS.open(path,opts.flags,opts.mode);if(opts.encoding==="utf8"){var buf=new Uint8Array(lengthBytesUTF8(data)+1);var actualNumBytes=stringToUTF8Array(data,buf,0,buf.length);FS.write(stream,buf,0,actualNumBytes,0,opts.canOwn)}else if(opts.encoding==="binary"){FS.write(stream,data,0,data.length,0,opts.canOwn)}FS.close(stream)}),cwd:(function(){return FS.currentPath}),chdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});if(lookup.node===null){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!FS.isDir(lookup.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}var err=FS.nodePermissions(lookup.node,"x");if(err){throw new FS.ErrnoError(err)}FS.currentPath=lookup.path}),createDefaultDirectories:(function(){FS.mkdir("/tmp");FS.mkdir("/home");FS.mkdir("/home/web_user")}),createDefaultDevices:(function(){FS.mkdir("/dev");FS.registerDevice(FS.makedev(1,3),{read:(function(){return 0}),write:(function(stream,buffer,offset,length,pos){return length})});FS.mkdev("/dev/null",FS.makedev(1,3));TTY.register(FS.makedev(5,0),TTY.default_tty_ops);TTY.register(FS.makedev(6,0),TTY.default_tty1_ops);FS.mkdev("/dev/tty",FS.makedev(5,0));FS.mkdev("/dev/tty1",FS.makedev(6,0));var random_device;if(typeof crypto!=="undefined"){var randomBuffer=new Uint8Array(1);random_device=(function(){crypto.getRandomValues(randomBuffer);return randomBuffer[0]})}else if(ENVIRONMENT_IS_NODE){random_device=(function(){return require("crypto").randomBytes(1)[0]})}else{random_device=(function(){return Math.random()*256|0})}FS.createDevice("/dev","random",random_device);FS.createDevice("/dev","urandom",random_device);FS.mkdir("/dev/shm");FS.mkdir("/dev/shm/tmp")}),createSpecialDirectories:(function(){FS.mkdir("/proc");FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd");FS.mount({mount:(function(){var node=FS.createNode("/proc/self","fd",16384|511,73);node.node_ops={lookup:(function(parent,name){var fd=+name;var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);var ret={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:(function(){return stream.path})}};ret.parent=ret;return ret})};return node})},{},"/proc/self/fd")}),createStandardStreams:(function(){if(Module["stdin"]){FS.createDevice("/dev","stdin",Module["stdin"])}else{FS.symlink("/dev/tty","/dev/stdin")}if(Module["stdout"]){FS.createDevice("/dev","stdout",null,Module["stdout"])}else{FS.symlink("/dev/tty","/dev/stdout")}if(Module["stderr"]){FS.createDevice("/dev","stderr",null,Module["stderr"])}else{FS.symlink("/dev/tty1","/dev/stderr")}var stdin=FS.open("/dev/stdin","r");assert(stdin.fd===0,"invalid handle for stdin ("+stdin.fd+")");var stdout=FS.open("/dev/stdout","w");assert(stdout.fd===1,"invalid handle for stdout ("+stdout.fd+")");var stderr=FS.open("/dev/stderr","w");assert(stderr.fd===2,"invalid handle for stderr ("+stderr.fd+")")}),ensureErrnoError:(function(){if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.node=node;this.setErrno=(function(errno){this.errno=errno;for(var key in ERRNO_CODES){if(ERRNO_CODES[key]===errno){this.code=key;break}}});this.setErrno(errno);this.message=ERRNO_MESSAGES[errno]};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[ERRNO_CODES.ENOENT].forEach((function(code){FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack="<generic error, no stack>"}))}),staticInit:(function(){FS.ensureErrnoError();FS.nameTable=new Array(4096);FS.mount(MEMFS,{},"/");FS.createDefaultDirectories();FS.createDefaultDevices();FS.createSpecialDirectories();FS.filesystems={"MEMFS":MEMFS,"IDBFS":IDBFS,"NODEFS":NODEFS,"WORKERFS":WORKERFS}}),init:(function(input,output,error){assert(!FS.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)");FS.init.initialized=true;FS.ensureErrnoError();Module["stdin"]=input||Module["stdin"];Module["stdout"]=output||Module["stdout"];Module["stderr"]=error||Module["stderr"];FS.createStandardStreams()}),quit:(function(){FS.init.initialized=false;var fflush=Module["_fflush"];if(fflush)fflush(0);for(var i=0;i<FS.streams.length;i++){var stream=FS.streams[i];if(!stream){continue}FS.close(stream)}}),getMode:(function(canRead,canWrite){var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode}),joinPath:(function(parts,forceRelative){var path=PATH.join.apply(null,parts);if(forceRelative&&path[0]=="/")path=path.substr(1);return path}),absolutePath:(function(relative,base){return PATH.resolve(base,relative)}),standardizePath:(function(path){return PATH.normalize(path)}),findObject:(function(path,dontResolveLastLink){var ret=FS.analyzePath(path,dontResolveLastLink);if(ret.exists){return ret.object}else{___setErrNo(ret.error);return null}}),analyzePath:(function(path,dontResolveLastLink){try{var lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});path=lookup.path}catch(e){}var ret={isRoot:false,exists:false,error:0,name:null,path:null,object:null,parentExists:false,parentPath:null,parentObject:null};try{var lookup=FS.lookupPath(path,{parent:true});ret.parentExists=true;ret.parentPath=lookup.path;ret.parentObject=lookup.node;ret.name=PATH.basename(path);lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});ret.exists=true;ret.path=lookup.path;ret.object=lookup.node;ret.name=lookup.node.name;ret.isRoot=lookup.path==="/"}catch(e){ret.error=e.errno}return ret}),createFolder:(function(parent,name,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.mkdir(path,mode)}),createPath:(function(parent,path,canRead,canWrite){parent=typeof parent==="string"?parent:FS.getPath(parent);var parts=path.split("/").reverse();while(parts.length){var part=parts.pop();if(!part)continue;var current=PATH.join2(parent,part);try{FS.mkdir(current)}catch(e){}parent=current}return current}),createFile:(function(parent,name,properties,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.create(path,mode)}),createDataFile:(function(parent,name,data,canRead,canWrite,canOwn){var path=name?PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name):parent;var mode=FS.getMode(canRead,canWrite);var node=FS.create(path,mode);if(data){if(typeof data==="string"){var arr=new Array(data.length);for(var i=0,len=data.length;i<len;++i)arr[i]=data.charCodeAt(i);data=arr}FS.chmod(node,mode|146);var stream=FS.open(node,"w");FS.write(stream,data,0,data.length,0,canOwn);FS.close(stream);FS.chmod(node,mode)}return node}),createDevice:(function(parent,name,input,output){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(!!input,!!output);if(!FS.createDevice.major)FS.createDevice.major=64;var dev=FS.makedev(FS.createDevice.major++,0);FS.registerDevice(dev,{open:(function(stream){stream.seekable=false}),close:(function(stream){if(output&&output.buffer&&output.buffer.length){output(10)}}),read:(function(stream,buffer,offset,length,pos){var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=input()}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){for(var i=0;i<length;i++){try{output(buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})});return FS.mkdev(path,mode,dev)}),createLink:(function(parent,name,target,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);return FS.symlink(target,path)}),forceLoadFile:(function(obj){if(obj.isDevice||obj.isFolder||obj.link||obj.contents)return true;var success=true;if(typeof XMLHttpRequest!=="undefined"){throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.")}else if(Module["read"]){try{obj.contents=intArrayFromString(Module["read"](obj.url),true);obj.usedBytes=obj.contents.length}catch(e){success=false}}else{throw new Error("Cannot load without read() or XMLHttpRequest.")}if(!success)___setErrNo(ERRNO_CODES.EIO);return success}),createLazyFile:(function(parent,name,url,canRead,canWrite){function LazyUint8Array(){this.lengthKnown=false;this.chunks=[]}LazyUint8Array.prototype.get=function LazyUint8Array_get(idx){if(idx>this.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var usesGzip=(header=xhr.getResponseHeader("Content-Encoding"))&&header==="gzip";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=(function(from,to){if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);if(typeof Uint8Array!="undefined")xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||"",true)}});var lazyArray=this;lazyArray.setDataGetter((function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]==="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]==="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]}));if(usesGzip||!datalength){chunkSize=datalength=1;datalength=this.getter(0).length;chunkSize=datalength;console.log("LazyFiles on gzip forces download of the whole file when length is accessed")}this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!=="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperties(lazyArray,{length:{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._length})},chunkSize:{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize})}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:(function(){return this.contents.length})}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach((function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}return fn.apply(null,arguments)}}));stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);assert(size>=0);if(contents.slice){for(var i=0;i<size;i++){buffer[offset+i]=contents[position+i]}}else{for(var i=0;i<size;i++){buffer[offset+i]=contents.get(position+i)}}return size};node.stream_ops=stream_ops;return node}),createPreloadedFile:(function(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn,preFinish){Browser.init();var fullname=name?PATH.resolve(PATH.join2(parent,name)):parent;var dep=getUniqueRunDependency("cp "+fullname);function processData(byteArray){function finish(byteArray){if(preFinish)preFinish();if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency(dep)}var handled=false;Module["preloadPlugins"].forEach((function(plugin){if(handled)return;if(plugin["canHandle"](fullname)){plugin["handle"](byteArray,fullname,finish,(function(){if(onerror)onerror();removeRunDependency(dep)}));handled=true}}));if(!handled)finish(byteArray)}addRunDependency(dep);if(typeof url=="string"){Browser.asyncLoad(url,(function(byteArray){processData(byteArray)}),onerror)}else{processData(url)}}),indexedDB:(function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB}),DB_NAME:(function(){return"EM_FS_"+window.location.pathname}),DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=function openRequest_onupgradeneeded(){console.log("creating db");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],"readwrite");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=function putRequest_onsuccess(){ok++;if(ok+fail==total)finish()};putRequest.onerror=function putRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror}),loadFilesFromDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;try{var transaction=db.transaction([FS.DB_STORE_NAME],"readonly")}catch(e){onerror(e);return}var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var getRequest=files.get(path);getRequest.onsuccess=function getRequest_onsuccess(){if(FS.analyzePath(path).exists){FS.unlink(path)}FS.createDataFile(PATH.dirname(path),PATH.basename(path),getRequest.result,true,true,true);ok++;if(ok+fail==total)finish()};getRequest.onerror=function getRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror})};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:(function(dirfd,path){if(path[0]!=="/"){var dir;if(dirfd===-100){dir=FS.cwd()}else{var dirstream=FS.getStream(dirfd);if(!dirstream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);dir=dirstream.path}path=PATH.join2(dir,path)}return path}),doStat:(function(func,path,buf){try{var stat=func(path)}catch(e){if(e&&e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){return-ERRNO_CODES.ENOTDIR}throw e}HEAP32[buf>>2]=stat.dev;HEAP32[buf+4>>2]=0;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAP32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;HEAP32[buf+32>>2]=0;HEAP32[buf+36>>2]=stat.size;HEAP32[buf+40>>2]=4096;HEAP32[buf+44>>2]=stat.blocks;HEAP32[buf+48>>2]=stat.atime.getTime()/1e3|0;HEAP32[buf+52>>2]=0;HEAP32[buf+56>>2]=stat.mtime.getTime()/1e3|0;HEAP32[buf+60>>2]=0;HEAP32[buf+64>>2]=stat.ctime.getTime()/1e3|0;HEAP32[buf+68>>2]=0;HEAP32[buf+72>>2]=stat.ino;return 0}),doMsync:(function(addr,stream,len,flags){var buffer=new Uint8Array(HEAPU8.subarray(addr,addr+len));FS.msync(stream,buffer,0,len,flags)}),doMkdir:(function(path,mode){path=PATH.normalize(path);if(path[path.length-1]==="/")path=path.substr(0,path.length-1);FS.mkdir(path,mode,0);return 0}),doMknod:(function(path,mode,dev){switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-ERRNO_CODES.EINVAL}FS.mknod(path,mode,dev);return 0}),doReadlink:(function(path,buf,bufsize){if(bufsize<=0)return-ERRNO_CODES.EINVAL;var ret=FS.readlink(path);var len=Math.min(bufsize,lengthBytesUTF8(ret));var endChar=HEAP8[buf+len];stringToUTF8(ret,buf,bufsize+1);HEAP8[buf+len]=endChar;return len}),doAccess:(function(path,amode){if(amode&~7){return-ERRNO_CODES.EINVAL}var node;var lookup=FS.lookupPath(path,{follow:true});node=lookup.node;var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){return-ERRNO_CODES.EACCES}return 0}),doDup:(function(path,flags,suggestFD){var suggest=FS.getStream(suggestFD);if(suggest)FS.close(suggest);return FS.open(path,flags,0,suggestFD,suggestFD).fd}),doReadv:(function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.read(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr<len)break}return ret}),doWritev:(function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr}return ret}),varargs:0,get:(function(varargs){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret}),getStr:(function(){var ret=Pointer_stringify(SYSCALLS.get());return ret}),getStreamFromFD:(function(){var stream=FS.getStream(SYSCALLS.get());if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);return stream}),getSocketFromFD:(function(){var socket=SOCKFS.getSocket(SYSCALLS.get());if(!socket)throw new FS.ErrnoError(ERRNO_CODES.EBADF);return socket}),getSocketAddress:(function(allowNull){var addrp=SYSCALLS.get(),addrlen=SYSCALLS.get();if(allowNull&&addrp===0)return null;var info=__read_sockaddr(addrp,addrlen);if(info.errno)throw new FS.ErrnoError(info.errno);info.addr=DNS.lookup_addr(info.addr)||info.addr;return info}),get64:(function(){var low=SYSCALLS.get(),high=SYSCALLS.get();if(low>=0)assert(high===0);else assert(high===-1);return low}),getZero:(function(){assert(SYSCALLS.get()===0)})};function ___syscall6(which,varargs){if(ENVIRONMENT_IS_PTHREAD){return _emscripten_sync_run_in_main_thread_2(138,6,varargs)}SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD();FS.close(stream);return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall54(which,varargs){if(ENVIRONMENT_IS_PTHREAD){return _emscripten_sync_run_in_main_thread_2(138,54,varargs)}SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),op=SYSCALLS.get();switch(op){case 21505:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};case 21506:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};case 21519:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;var argp=SYSCALLS.get();HEAP32[argp>>2]=0;return 0};case 21520:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return-ERRNO_CODES.EINVAL};case 21531:{var argp=SYSCALLS.get();return FS.ioctl(stream,op,argp)};case 21523:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};default:abort("bad ioctl syscall "+op)}}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["_bitshift64Lshr"]=_bitshift64Lshr;function __exit(status){Module["exit"](status)}function _exit(status){__exit(status)}function _pthread_exit(status){if(!ENVIRONMENT_IS_PTHREAD)_exit(status);else PThread.threadExit(status)}Module["_testSetjmp"]=_testSetjmp;function _longjmp(env,value){Module["setThrew"](env,value||1);throw"longjmp"}function _unsetenv(name){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_1(114,name);if(name===0){___setErrNo(ERRNO_CODES.EINVAL);return-1}name=Pointer_stringify(name);if(name===""||name.indexOf("=")!==-1){___setErrNo(ERRNO_CODES.EINVAL);return-1}if(ENV.hasOwnProperty(name)){delete ENV[name];___buildEnvironment(ENV)}return 0}function _pthread_cleanup_push(routine,arg){if(PThread.exitHandlers===null){PThread.exitHandlers=[];if(!ENVIRONMENT_IS_PTHREAD){__ATEXIT__.push((function(){PThread.runExitHandlers()}))}}PThread.exitHandlers.push((function(){Module["dynCall_vi"](routine,arg)}))}function _emscripten_get_now_is_monotonic(){return ENVIRONMENT_IS_NODE||typeof dateNow!=="undefined"||(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&self["performance"]&&self["performance"]["now"]}function _clock_gettime(clk_id,tp){var now;if(clk_id===0){now=Date.now()}else if(clk_id===1&&_emscripten_get_now_is_monotonic()){now=_emscripten_get_now()}else{___setErrNo(ERRNO_CODES.EINVAL);return-1}HEAP32[tp>>2]=now/1e3|0;HEAP32[tp+4>>2]=now%1e3*1e3*1e3|0;return 0}function ___clock_gettime(){return _clock_gettime.apply(null,arguments)}function _getenv(name){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_1(111,name);if(name===0)return 0;name=Pointer_stringify(name);if(!ENV.hasOwnProperty(name))return 0;if(_getenv.ret)_free(_getenv.ret);_getenv.ret=allocate(intArrayFromString(ENV[name]),"i8",ALLOC_NORMAL);return _getenv.ret}function _emscripten_conditional_set_current_thread_status_js(expectedStatus,newStatus){}Module["_emscripten_conditional_set_current_thread_status"]=_emscripten_conditional_set_current_thread_status;function _pthread_cleanup_pop(execute){var routine=PThread.exitHandlers.pop();if(execute)routine()}function __cleanup_thread(pthread_ptr){if(ENVIRONMENT_IS_PTHREAD)throw"Internal Error! _cleanup_thread() can only ever be called from main application thread!";if(!pthread_ptr)throw"Internal Error! Null pthread_ptr in _cleanup_thread!";HEAP32[pthread_ptr+24>>2]=0;var pthread=PThread.pthreads[pthread_ptr];var worker=pthread.worker;PThread.freeThreadData(pthread);worker.pthread=undefined;PThread.unusedWorkerPool.push(worker);PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(worker.pthread),1)}function __pthread_testcancel_js(){if(!ENVIRONMENT_IS_PTHREAD)return;if(!threadInfoStruct)return;var cancelDisabled=Atomics.load(HEAPU32,threadInfoStruct+72>>2);if(cancelDisabled)return;var canceled=Atomics.load(HEAPU32,threadInfoStruct+0>>2);if(canceled==2)throw"Canceled!"}function _pthread_join(thread,status){if(!thread){Module["printErr"]("pthread_join attempted on a null thread pointer!");return ERRNO_CODES.ESRCH}if(ENVIRONMENT_IS_PTHREAD&&selfThreadId==thread){Module["printErr"]("PThread "+thread+" is attempting to join to itself!");return ERRNO_CODES.EDEADLK}else if(!ENVIRONMENT_IS_PTHREAD&&PThread.mainThreadBlock==thread){Module["printErr"]("Main thread "+thread+" is attempting to join to itself!");return ERRNO_CODES.EDEADLK}var self=HEAP32[thread+24>>2];if(self!=thread){Module["printErr"]("pthread_join attempted on thread "+thread+", which does not point to a valid thread, or does not exist anymore!");return ERRNO_CODES.ESRCH}var detached=Atomics.load(HEAPU32,thread+80>>2);if(detached){Module["printErr"]("Attempted to join thread "+thread+", which was already detached!");return ERRNO_CODES.EINVAL}for(;;){var threadStatus=Atomics.load(HEAPU32,thread+0>>2);if(threadStatus==1){var threadExitCode=Atomics.load(HEAPU32,thread+4>>2);if(status)HEAP32[status>>2]=threadExitCode;Atomics.store(HEAPU32,thread+80>>2,1);if(!ENVIRONMENT_IS_PTHREAD)__cleanup_thread(thread);else postMessage({cmd:"cleanupThread",thread:thread});return 0}__pthread_testcancel_js();if(!ENVIRONMENT_IS_PTHREAD)_emscripten_main_thread_process_queued_calls();_emscripten_futex_wait(thread+0,threadStatus,ENVIRONMENT_IS_PTHREAD?100:1)}}function _confstr(name,buf,len){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_3(68,name,buf,len);var value;switch(name){case 0:value=ENV["PATH"]||"/";break;case 1:value="POSIX_V6_ILP32_OFF32\nPOSIX_V6_ILP32_OFFBIG";break;case 2:value="glibc 2.14";break;case 3:value="";break;case 1118:case 1122:case 1124:case 1125:case 1126:case 1128:case 1129:case 1130:value="";break;case 1116:case 1117:case 1121:value="-m32";break;case 1120:value="-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64";break;default:___setErrNo(ERRNO_CODES.EINVAL);return 0}if(len==0||buf==0){return value.length+1}else{var length=Math.min(len,value.length);for(var i=0;i<length;i++){HEAP8[buf+i>>0]=value.charCodeAt(i)}if(len>length)HEAP8[buf+i++>>0]=0;return i}}function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest);return dest}Module["_memcpy"]=_memcpy;function _utime(path,times){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_2(12,path,times);var time;if(times){var offset=4;time=HEAP32[times+offset>>2];time*=1e3}else{time=Date.now()}path=Pointer_stringify(path);try{FS.utime(path,time,time);return 0}catch(e){FS.handleFSError(e);return-1}}var cttz_i8;if(ENVIRONMENT_IS_PTHREAD)cttz_i8=PthreadWorkerInit.cttz_i8;else PthreadWorkerInit.cttz_i8=cttz_i8=allocate([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",ALLOC_STATIC);Module["_llvm_cttz_i32"]=_llvm_cttz_i32;Module["___udivmoddi4"]=___udivmoddi4;Module["___udivdi3"]=___udivdi3;Module["___muldsi3"]=___muldsi3;Module["___muldi3"]=___muldi3;function _emscripten_futex_wake(addr,count){if(addr<=0||addr>HEAP8.length||addr&3!=0||count<0)return-22;if(count==0)return 0;var mainThreadWaitAddress=Atomics.load(HEAP32,__main_thread_futex_wait_address>>2);var mainThreadWoken=0;if(mainThreadWaitAddress==addr){var loadedAddr=Atomics.compareExchange(HEAP32,__main_thread_futex_wait_address>>2,mainThreadWaitAddress,0);if(loadedAddr==mainThreadWaitAddress){--count;mainThreadWoken=1;if(count<=0)return 1}}var ret=Atomics.wake(HEAP32,addr>>2,count);if(ret>=0)return ret+mainThreadWoken;throw"Atomics.wake returned an unexpected value "+ret}function _emscripten_syscall(which,varargs){switch(which){case 6:return ___syscall6(which,varargs);case 54:return ___syscall54(which,varargs);case 146:return ___syscall146(which,varargs);case 140:return ___syscall140(which,varargs);default:throw"surprising proxied syscall: "+which}}function ___syscall146(which,varargs){if(ENVIRONMENT_IS_PTHREAD){return _emscripten_sync_run_in_main_thread_2(138,146,varargs)}SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),iov=SYSCALLS.get(),iovcnt=SYSCALLS.get();return SYSCALLS.doWritev(stream,iov,iovcnt)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["_memmove"]=_memmove;function _emscripten_is_main_runtime_thread(){return __pthread_is_main_runtime_thread|0}function _gettimeofday(ptr){var now=Date.now();HEAP32[ptr>>2]=now/1e3|0;HEAP32[ptr+4>>2]=now%1e3*1e3|0;return 0}Module["___uremdi3"]=___uremdi3;function _fpathconf(fildes,name){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_2(46,fildes,name);switch(name){case 0:return 32e3;case 1:case 2:case 3:return 255;case 4:case 5:case 16:case 17:case 18:return 4096;case 6:case 7:case 20:return 1;case 8:return 0;case 9:case 10:case 11:case 12:case 14:case 15:case 19:return-1;case 13:return 64}___setErrNo(ERRNO_CODES.EINVAL);return-1}function _abort(){Module["abort"]()}Module["_llvm_bswap_i32"]=_llvm_bswap_i32;Module["_sbrk"]=_sbrk;function ___syscall140(which,varargs){if(ENVIRONMENT_IS_PTHREAD){return _emscripten_sync_run_in_main_thread_2(138,140,varargs)}SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),offset_high=SYSCALLS.get(),offset_low=SYSCALLS.get(),result=SYSCALLS.get(),whence=SYSCALLS.get();var offset=offset_low;assert(offset_high===0);FS.llseek(stream,offset,whence);HEAP32[result>>2]=stream.position;if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function _utimes(path,times){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_2(13,path,times);var time;if(times){var offset=8+0;time=HEAP32[times+offset>>2]*1e3;offset=8+4;time+=HEAP32[times+offset>>2]/1e3}else{time=Date.now()}path=Pointer_stringify(path);try{FS.utime(path,time,time);return 0}catch(e){FS.handleFSError(e);return-1}}function _clearenv(name){if(ENVIRONMENT_IS_PTHREAD)return _emscripten_sync_run_in_main_thread_1(112,name);ENV={};___buildEnvironment(ENV);return 0}if(!ENVIRONMENT_IS_PTHREAD){PThread.initMainThreadBlock()}else{Module.PThread=PThread}if(!ENVIRONMENT_IS_PTHREAD)___buildEnvironment(ENV);if(ENVIRONMENT_IS_NODE){_emscripten_get_now=function _emscripten_get_now_actual(){var t=process["hrtime"]();return t[0]*1e3+t[1]/1e6}}else if(typeof dateNow!=="undefined"){_emscripten_get_now=dateNow}else if(typeof self==="object"&&self["performance"]&&typeof self["performance"]["now"]==="function"){_emscripten_get_now=(function(){return self["performance"]["now"]()})}else if(typeof performance==="object"&&typeof performance["now"]==="function"){_emscripten_get_now=(function(){return performance["now"]()})}else{_emscripten_get_now=Date.now}FS.staticInit();__ATINIT__.unshift((function(){if(!Module["noFSInit"]&&!FS.init.initialized)FS.init()}));__ATMAIN__.push((function(){FS.ignorePermissions=false}));__ATEXIT__.push((function(){FS.quit()}));Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;__ATINIT__.unshift((function(){TTY.init()}));__ATEXIT__.push((function(){TTY.shutdown()}));if(ENVIRONMENT_IS_NODE){var fs=require("fs");var NODEJS_PATH=require("path");NODEFS.staticInit()}if(!ENVIRONMENT_IS_PTHREAD){DYNAMICTOP_PTR=allocate(1,"i32",ALLOC_STATIC);STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP);STACK_MAX=STACK_BASE+TOTAL_STACK;DYNAMIC_BASE=Runtime.alignMemory(STACK_MAX);HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE;staticSealed=true}function invoke_iiii(index,a1,a2,a3){try{return Module["dynCall_iiii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_viiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){try{Module["dynCall_viiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_i(index){try{return Module["dynCall_i"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_vi(index,a1){try{Module["dynCall_vi"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_vii(index,a1,a2){try{Module["dynCall_vii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_ii(index,a1){try{return Module["dynCall_ii"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_viii(index,a1,a2,a3){try{Module["dynCall_viii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_v(index){try{Module["dynCall_v"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){try{return Module["dynCall_iiiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){try{Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_iii(index,a1,a2){try{return Module["dynCall_iii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_iiiiii(index,a1,a2,a3,a4,a5){try{return Module["dynCall_iiiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_viiii(index,a1,a2,a3,a4){try{Module["dynCall_viiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}Module.asmGlobalArg={"Math":Math,"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":Uint8Array,"Uint16Array":Uint16Array,"Uint32Array":Uint32Array,"Float32Array":Float32Array,"Float64Array":Float64Array,"NaN":NaN,"Infinity":Infinity};Module.asmGlobalArg["Atomics"]=Atomics;Module.asmLibraryArg={"abort":abort,"assert":assert,"enlargeMemory":enlargeMemory,"getTotalMemory":getTotalMemory,"abortOnCannotGrowMemory":abortOnCannotGrowMemory,"invoke_iiii":invoke_iiii,"invoke_viiiiiiiiii":invoke_viiiiiiiiii,"invoke_i":invoke_i,"invoke_vi":invoke_vi,"invoke_vii":invoke_vii,"invoke_ii":invoke_ii,"invoke_viii":invoke_viii,"invoke_v":invoke_v,"invoke_iiiii":invoke_iiiii,"invoke_viiiiii":invoke_viiiiii,"invoke_iii":invoke_iii,"invoke_iiiiii":invoke_iiiiii,"invoke_viiii":invoke_viiii,"__spawn_thread":__spawn_thread,"_pthread_cleanup_pop":_pthread_cleanup_pop,"_putenv":_putenv,"_emscripten_get_now_is_monotonic":_emscripten_get_now_is_monotonic,"_emscripten_is_main_runtime_thread":_emscripten_is_main_runtime_thread,"_ogvjs_callback_async_complete":_ogvjs_callback_async_complete,"_unsetenv":_unsetenv,"_emscripten_futex_wake_or_requeue":_emscripten_futex_wake_or_requeue,"_emscripten_syscall":_emscripten_syscall,"___assert_fail":___assert_fail,"_utimes":_utimes,"___buildEnvironment":___buildEnvironment,"_longjmp":_longjmp,"_sysconf":_sysconf,"_clock_gettime":_clock_gettime,"_emscripten_futex_wait":_emscripten_futex_wait,"_tzset":_tzset,"___setErrNo":___setErrNo,"_emscripten_set_current_thread_status_js":_emscripten_set_current_thread_status_js,"_pthread_getschedparam":_pthread_getschedparam,"_clearenv":_clearenv,"_emscripten_asm_const_v":_emscripten_asm_const_v,"_emscripten_futex_wake":_emscripten_futex_wake,"__exit":__exit,"_utime":_utime,"___pthread_setcancelstate":___pthread_setcancelstate,"___syscall6":___syscall6,"_emscripten_memcpy_big":_emscripten_memcpy_big,"_ogvjs_callback_frame":_ogvjs_callback_frame,"_exit":_exit,"_confstr":_confstr,"_pthread_self":_pthread_self,"_pthread_join":_pthread_join,"_getenv":_getenv,"_pthread_exit":_pthread_exit,"___syscall54":___syscall54,"_emscripten_num_logical_cores":_emscripten_num_logical_cores,"_pthread_create":_pthread_create,"__register_pthread_ptr":__register_pthread_ptr,"_emscripten_get_now":_emscripten_get_now,"_chroot":_chroot,"_emscripten_force_num_logical_cores":_emscripten_force_num_logical_cores,"__pthread_testcancel_js":__pthread_testcancel_js,"_abort":_abort,"_pthread_cleanup_push":_pthread_cleanup_push,"___clock_gettime":___clock_gettime,"__cleanup_thread":__cleanup_thread,"_gettimeofday":_gettimeofday,"_atexit":_atexit,"___syscall140":___syscall140,"_fpathconf":_fpathconf,"_setenv":_setenv,"___syscall146":___syscall146,"_emscripten_conditional_set_current_thread_status_js":_emscripten_conditional_set_current_thread_status_js,"DYNAMICTOP_PTR":DYNAMICTOP_PTR,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX,"cttz_i8":cttz_i8};// EMSCRIPTEN_START_ASM
var asm=(function(global,env,buffer) {
"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.DYNAMICTOP_PTR|0;var j=env.tempDoublePtr|0;var k=env.ABORT|0;var l=env.STACKTOP|0;var m=env.STACK_MAX|0;var n=env.cttz_i8|0;var o=0;var p=0;var q=0;var r=0;var s=global.NaN,t=global.Infinity;var u=0,v=0,w=0,x=0,y=0.0,z=0,A=0,B=0,C=0.0;var D=0;var E=global.Math.floor;var F=global.Math.abs;var G=global.Math.sqrt;var H=global.Math.pow;var I=global.Math.cos;var J=global.Math.sin;var K=global.Math.tan;var L=global.Math.acos;var M=global.Math.asin;var N=global.Math.atan;var O=global.Math.atan2;var P=global.Math.exp;var Q=global.Math.log;var R=global.Math.ceil;var S=global.Math.imul;var T=global.Math.min;var U=global.Math.max;var V=global.Math.clz32;var W=env.abort;var X=env.assert;var Y=env.enlargeMemory;var Z=env.getTotalMemory;var _=env.abortOnCannotGrowMemory;var $=env.invoke_iiii;var aa=env.invoke_viiiiiiiiii;var ba=env.invoke_i;var ca=env.invoke_vi;var da=env.invoke_vii;var ea=env.invoke_ii;var fa=env.invoke_viii;var ga=env.invoke_v;var ha=env.invoke_iiiii;var ia=env.invoke_viiiiii;var ja=env.invoke_iii;var ka=env.invoke_iiiiii;var la=env.invoke_viiii;var ma=env.__spawn_thread;var na=env._pthread_cleanup_pop;var oa=env._putenv;var pa=env._emscripten_get_now_is_monotonic;var qa=env._emscripten_is_main_runtime_thread;var ra=env._ogvjs_callback_async_complete;var sa=env._unsetenv;var ta=env._emscripten_futex_wake_or_requeue;var ua=env._emscripten_syscall;var va=env.___assert_fail;var wa=env._utimes;var xa=env.___buildEnvironment;var ya=env._longjmp;var za=env._sysconf;var Aa=env._clock_gettime;var Ba=env._emscripten_futex_wait;var Ca=env._tzset;var Da=env.___setErrNo;var Ea=env._emscripten_set_current_thread_status_js;var Fa=env._pthread_getschedparam;var Ga=env._clearenv;var Ha=env._emscripten_asm_const_v;var Ia=env._emscripten_futex_wake;var Ja=env.__exit;var Ka=env._utime;var La=env.___pthread_setcancelstate;var Ma=env.___syscall6;var Na=env._emscripten_memcpy_big;var Oa=env._ogvjs_callback_frame;var Pa=env._exit;var Qa=env._confstr;var Ra=env._pthread_self;var Sa=env._pthread_join;var Ta=env._getenv;var Ua=env._pthread_exit;var Va=env.___syscall54;var Wa=env._emscripten_num_logical_cores;var Xa=env._pthread_create;var Ya=env.__register_pthread_ptr;var Za=env._emscripten_get_now;var _a=env._chroot;var $a=env._emscripten_force_num_logical_cores;var ab=env.__pthread_testcancel_js;var bb=env._abort;var cb=env._pthread_cleanup_push;var db=env.___clock_gettime;var eb=env.__cleanup_thread;var fb=env._gettimeofday;var gb=env._atexit;var hb=env.___syscall140;var ib=env._fpathconf;var jb=env._setenv;var kb=env.___syscall146;var lb=env._emscripten_conditional_set_current_thread_status_js;var mb=global.Atomics.load;var nb=global.Atomics.store;var ob=global.Atomics.exchange;var pb=global.Atomics.compareExchange;var qb=global.Atomics.add;var rb=global.Atomics.sub;var sb=global.Atomics.and;var tb=global.Atomics.or;var ub=global.Atomics.xor;var vb=0.0;
// EMSCRIPTEN_START_FUNCS
function Jb(a){a=a|0;var b=0;b=l;l=l+a|0;l=l+15&-16;return b|0}function Kb(){return l|0}function Lb(a){a=a|0;l=a}function Mb(a,b){a=a|0;b=b|0;l=a;m=b}function Nb(a,b){a=a|0;b=b|0;if(!o){o=a;p=b}}function Ob(a){a=a|0;D=a}function Pb(){return D|0}function Qb(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;if((f|0)==10)if((a|0)!=0&(b|0)!=0)if((c[b+4>>2]|0)==5){f=c[b+8>>2]|0;if((!((e&65536|0)!=0&(f&262144|0)==0)?!((e&131072|0)!=0&(f&524288|0)==0):0)?!((f&1|0)==0|(e&262144|0)!=0&(f&1048576|0)==0):0){f=a+8|0;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;c[a+4>>2]=b;c[a>>2]=c[b>>2];f=a+24|0;c[f>>2]=0;c[a+16>>2]=e;c[a+20>>2]=d;d=Gb[c[b+12>>2]&31](a,0)|0;if(!d)g=0;else{b=c[f>>2]|0;if(!b)h=0;else h=c[b>>2]|0;c[a+12>>2]=h;Tb(a)|0;g=d}}else g=4}else g=3;else{i=8;j=11}else{i=3;j=11}if((j|0)==11)if(!a){k=i;return k|0}else g=i;c[a+8>>2]=g;k=g;return k|0}function Rb(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;if(!a){g=8;return g|0}if((b|0)==0^(d|0)!=0){h=c[a+4>>2]|0;if((h|0)!=0?(i=c[a+24>>2]|0,(i|0)!=0):0)j=Hb[c[h+32>>2]&3](i,b,d,e,f)|0;else j=1}else j=8;c[a+8>>2]=j;g=j;return g|0}function Sb(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(!((a|0)!=0&(b|0)!=0)){d=0;return d|0}e=c[a+4>>2]|0;if(!e){d=0;return d|0}f=c[a+24>>2]|0;if(!f){d=0;return d|0}d=Gb[c[e+36>>2]&31](f,b)|0;return d|0}function Tb(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;if(!a){b=8;return b|0}d=a+4|0;e=c[d>>2]|0;if((e|0)!=0?(f=a+24|0,g=c[f>>2]|0,(g|0)!=0):0){Bb[c[e+16>>2]&7](g)|0;c[d>>2]=0;c[a>>2]=0;c[f>>2]=0;h=0}else h=1;c[a+8>>2]=h;b=h;return b|0}function Ub(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=l;l=l+16|0;h=g;c[b>>2]=d;d=b+4|0;c[d>>2]=0;if(e|0){c[d>>2]=1;c[h>>2]=f;Dh(b+8|0,79,e,h)|0;a[b+87>>0]=0}if(!(c[b+88>>2]|0)){l=g;return}else ya(b+92|0,c[b>>2]|0)}function Vb(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=Kj(a|0,0,3,0)|0;e=Kj(d|0,D|0,b|0,0)|0;b=D;if(!((b>>>0<0|(b|0)==0&e>>>0<2147418113)&((e|0)==(e|0)&(b|0)==0))){f=0;return f|0}b=Bj(e)|0;e=a+-1+(b+4)&0-a;if(!b){f=0;return f|0}c[e+-4>>2]=b;f=e;return f|0}function Wb(a){a=a|0;var b=0,d=0;b=Kj(a|0,0,11,0)|0;a=D;if(!((a>>>0<0|(a|0)==0&b>>>0<2147418113)&((b|0)==(b|0)&(a|0)==0))){d=0;return d|0}a=Bj(b)|0;b=a+4+7&-8;if(!a){d=0;return d|0}c[b+-4>>2]=a;d=b;return d|0}function Xb(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if(a|0?(d=S(b,a)|0,e=(a|0)==0,f=Tj(2147418112,0,a|0,0)|0,g=D,(e?0:((d>>>0)/((e?1:a)>>>0)|0|0)!=(b|0))|(g>>>0<0|(g|0)==0&f>>>0<b>>>0)):0){h=0;return h|0}f=S(b,a)|0;a=Kj(f|0,0,11,0)|0;b=D;if(!((b>>>0<0|(b|0)==0&a>>>0<2147418113)&((a|0)==(a|0)&(b|0)==0))){h=0;return h|0}b=Bj(a)|0;a=b+4+7&-8;g=a;if(!b){h=0;return h|0}c[g+-4>>2]=b;if(!a){h=0;return h|0}Jj(g|0,0,f|0)|0;h=g;return h|0}function Yb(a){a=a|0;if(!a)return;Cj(c[a+-4>>2]|0);return}function Zb(a){a=a|0;var b=0,d=0;if(!a){b=-1;return b|0}if((c[a+72>>2]|0)>0)Yb(c[a+68>>2]|0);d=a;a=d+120|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(a|0));b=0;return b|0}function _b(a,b,d,e,f,g,h,i,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;if(!a){l=-2;return l|0}m=(h|0)==0?1:h;n=b+7&-8;o=d+7&-8;p=g<<1;q=n+31+p&-32;r=p+o|0;p=Vj(q|0,((q|0)<0)<<31>>31|0,r|0,((r|0)<0)<<31>>31|0)|0;r=((h|0)<0)<<31>>31;s=Kj(p|0,D|0,h|0,r|0)|0;p=D;t=n>>e;u=o>>f;v=q>>e;w=g>>e;x=g>>f;y=(x<<1)+u|0;z=Vj(v|0,((v|0)<0)<<31>>31|0,y|0,((y|0)<0)<<31>>31|0)|0;y=Kj(z|0,D|0,h|0,r|0)|0;r=Mj(y|0,D|0,1)|0;h=Kj(r|0,D|0,s|0,p|0)|0;p=D;do if(!j){r=a+72|0;if(p>>>0>0|((p|0)==0?h>>>0>(c[r>>2]|0)>>>0:0)){z=a+68|0;Yb(c[z>>2]|0);c[z>>2]=0;if(!((h|0)==(h|0)&(p|0)==0)){l=-1;return l|0}A=Vb(32,h)|0;c[z>>2]=A;if(!A){l=-1;return l|0}else{c[r>>2]=h;Jj(A|0,0,h|0)|0;break}}}else{A=Kj(h|0,p|0,31,0)|0;r=D;if(!((A|0)==(A|0)&(r|0)==0)){l=-1;return l|0}if((wb[j&7](k,A,i)|0)<0){l=-1;return l|0}z=c[i>>2]|0;if(!z){l=-1;return l|0}if(0<r>>>0|(0==(r|0)?(c[i+4>>2]|0)>>>0<A>>>0:0)){l=-1;return l|0}else{c[a+68>>2]=z+31&-32;break}}while(0);if(g&31|0){l=-3;return l|0}c[a+8>>2]=b;c[a+12>>2]=d;c[a>>2]=n;c[a+4>>2]=o;c[a+16>>2]=q;c[a+28>>2]=e+b>>e;c[a+32>>2]=f+d>>f;c[a+20>>2]=t;c[a+24>>2]=u;c[a+36>>2]=v;c[a+76>>2]=g;c[a+80>>2]=h;c[a+84>>2]=e;c[a+88>>2]=f;f=c[a+68>>2]|0;e=m+-1|0;h=0-m|0;c[a+52>>2]=f+(S(q,g)|0)+g+e&h;g=f+s|0;s=S(v,x)|0;c[a+56>>2]=g+s+w+e&h;c[a+60>>2]=g+y+s+w+e&h;c[a+112>>2]=0;l=0;return l|0}function $b(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;d=c[b+76>>2]|0;e=(d|0)/2|0;f=c[b+52>>2]|0;g=c[b+16>>2]|0;h=c[b+8>>2]|0;i=c[b+12>>2]|0;j=d-i+(c[b+4>>2]|0)|0;k=(c[b>>2]|0)+d|0;l=k-h|0;m=k+d|0;k=f+h|0;h=0-d|0;n=f+h|0;if((i|0)>0){o=n;p=k;q=0;r=f;s=k+-1|0;while(1){Jj(o|0,a[r>>0]|0,d|0)|0;Jj(p|0,a[s>>0]|0,l|0)|0;q=q+1|0;if((q|0)==(i|0))break;else{o=o+g|0;p=p+g|0;r=r+g|0;s=s+g|0}}}s=f+(S(i+-1|0,g)|0)+h|0;r=f+(S(i,g)|0)+h|0;if((d|0)>0){i=f+(S(g,h)|0)+h|0;h=0;while(1){Qj(i|0,n|0,m|0)|0;h=h+1|0;if((h|0)==(d|0))break;else i=i+g|0}}if((j|0)>0){i=r;r=0;while(1){Qj(i|0,s|0,m|0)|0;r=r+1|0;if((r|0)==(j|0))break;else i=i+g|0}}g=c[b+56>>2]|0;i=b+36|0;j=c[i>>2]|0;r=b+28|0;m=c[r>>2]|0;s=b+32|0;h=c[s>>2]|0;n=b+24|0;f=e-h+(c[n>>2]|0)|0;p=b+20|0;o=(c[p>>2]|0)+e|0;q=o-m|0;l=o+e|0;o=g+m|0;m=0-e|0;k=g+m|0;if((h|0)>0){t=k;u=o;v=0;w=g;x=o+-1|0;while(1){Jj(t|0,a[w>>0]|0,e|0)|0;Jj(u|0,a[x>>0]|0,q|0)|0;v=v+1|0;if((v|0)==(h|0))break;else{t=t+j|0;u=u+j|0;w=w+j|0;x=x+j|0}}}x=g+(S(h+-1|0,j)|0)+m|0;w=g+(S(h,j)|0)+m|0;h=(d|0)>1;if(h){d=g+(S(j,m)|0)+m|0;g=0;while(1){Qj(d|0,k|0,l|0)|0;g=g+1|0;if((g|0)==(e|0))break;else d=d+j|0}}if((f|0)>0){d=w;w=0;while(1){Qj(d|0,x|0,l|0)|0;w=w+1|0;if((w|0)==(f|0))break;else d=d+j|0}}j=c[b+60>>2]|0;b=c[i>>2]|0;i=c[r>>2]|0;r=c[s>>2]|0;s=e-r+(c[n>>2]|0)|0;n=(c[p>>2]|0)+e|0;p=n-i|0;d=n+e|0;n=j+i|0;i=j+m|0;if((r|0)>0){f=i;w=n;l=0;x=j;g=n+-1|0;while(1){Jj(f|0,a[x>>0]|0,e|0)|0;Jj(w|0,a[g>>0]|0,p|0)|0;l=l+1|0;if((l|0)==(r|0))break;else{f=f+b|0;w=w+b|0;x=x+b|0;g=g+b|0}}}g=j+(S(r+-1|0,b)|0)+m|0;x=j+(S(r,b)|0)+m|0;if(h){h=j+(S(b,m)|0)+m|0;m=0;while(1){Qj(h|0,i|0,d|0)|0;m=m+1|0;if((m|0)==(e|0))break;else h=h+b|0}}if((s|0)>0){y=x;z=0}else return;while(1){Qj(y|0,g|0,d|0)|0;z=z+1|0;if((z|0)==(s|0))break;else y=y+b|0}return}function ac(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=a+4|0;if((c[d>>2]|0)>0){e=a+16|0;f=b+16|0;g=c[b+52>>2]|0;h=0;i=c[a+52>>2]|0;while(1){Qj(g|0,i|0,c[a>>2]|0)|0;h=h+1|0;if((h|0)>=(c[d>>2]|0))break;else{g=g+(c[f>>2]|0)|0;i=i+(c[e>>2]|0)|0}}}e=a+24|0;if((c[e>>2]|0)<=0){$b(b);return}i=a+20|0;f=a+36|0;g=b+36|0;d=c[b+56>>2]|0;h=0;j=c[a+56>>2]|0;while(1){Qj(d|0,j|0,c[i>>2]|0)|0;h=h+1|0;k=c[e>>2]|0;if((h|0)>=(k|0))break;else{d=d+(c[g>>2]|0)|0;j=j+(c[f>>2]|0)|0}}if((k|0)<=0){$b(b);return}k=a+20|0;f=a+36|0;j=b+36|0;g=c[b+60>>2]|0;d=0;h=c[a+60>>2]|0;while(1){Qj(g|0,h|0,c[k>>2]|0)|0;d=d+1|0;if((d|0)>=(c[e>>2]|0))break;else{g=g+(c[j>>2]|0)|0;h=h+(c[f>>2]|0)|0}}$b(b);return}function bc(){vj(34824,1)|0;return}function cc(){return}function dc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ec(0,a,b,c,d)|0;return}function ec(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;h=a[d+b>>0]|0;i=h<<24>>24;if(h<<24>>24<1)j=c[f+(0-i<<2)>>2]|0;else j=ec(i,d,e,f,g)|0;i=a[d+(b+1)>>0]|0;h=i<<24>>24;if(i<<24>>24<1)k=c[f+(0-h<<2)>>2]|0;else k=ec(h,d,e,f,g)|0;f=b>>>1;b=a[e+f>>0]|0;e=k+j|0;if(!e){l=b;m=g+f|0;a[m>>0]=l;return e|0}k=c[19488+((e>>>0<20?e:20)<<2)>>2]|0;d=Mj(j|0,0,8)|0;j=Kj(e>>>1|0,0,d|0,D|0)|0;d=Tj(j|0,D|0,e|0,0)|0;l=((S(256-k|0,b&255)|0)+128+(S(((255-d|0)>>>23|d)&255|(d|0)==0,k)|0)|0)>>>8&255;m=g+f|0;a[m>>0]=l;return e|0}function fc(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;if(!((b|0)!=0|(e|0)==0)){h=1;return h|0}c[a+12>>2]=b+e;c[a+16>>2]=b;c[a>>2]=0;b=a+8|0;c[b>>2]=-8;e=a+4|0;c[e>>2]=255;c[a+20>>2]=f;c[a+24>>2]=g;gc(a);g=((c[e>>2]<<7)+128|0)>>>8;f=c[b>>2]|0;if((f|0)<0){gc(a);i=c[b>>2]|0}else i=f;f=c[a>>2]|0;j=g<<24;if(f>>>0<j>>>0){k=0;l=g;m=f}else{k=1;l=(c[e>>2]|0)-g|0;m=f-j|0}j=d[1280+l>>0]|0;c[a>>2]=m<<j;c[b>>2]=i-j;c[e>>2]=l<<j;h=k;return h|0}function gc(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;b=a+16|0;e=c[b>>2]|0;f=c[a>>2]|0;g=a+8|0;h=c[g>>2]|0;i=(c[a+12>>2]|0)-e|0;j=i<<3;k=16-h|0;l=c[a+20>>2]|0;m=a+28|0;if(!l)n=e;else{Ib[l&63](c[a+24>>2]|0,e,m,i>>>0<5?i:5);n=m}m=k+8|0;if(j>>>0<=32){i=m-j|0;e=(i|0)>-1;l=e?h+1073741824|0:h;o=e?i:0;if(e&(j|0)==0|(k|0)<(o|0)){p=n;q=l;r=f}else{j=n;e=l;l=k;i=f;while(1){f=e+8|0;s=j+1|0;t=(d[j>>0]|0)<<l|i;l=l+-8|0;if((l|0)<(o|0)){p=s;q=f;r=t;break}else{j=s;e=f;i=t}}}}else{i=m&-8;e=(Yj(d[n>>0]|d[n+1>>0]<<8|d[n+2>>0]<<16|d[n+3>>0]<<24|0)|0)>>>(32-i|0);p=n+(m>>3)|0;q=i+h|0;r=e<<(k&7)|c[a>>2]}c[b>>2]=(c[b>>2]|0)+(p-n);c[a>>2]=r;c[g>>2]=q;return}function hc(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=a+8|0;d=c[b>>2]|0;e=a+16|0;a=c[e>>2]|0;if((d+-9|0)>>>0<23){f=d;g=a}else{h=a;return h|0}do{a=f;f=f+-8|0;g=g+-1|0}while((a+-17|0)>>>0<23);c[b>>2]=f;c[e>>2]=g;h=g;return h|0}function ic(a){a=a|0;return ((c[a+8>>2]|0)+7|0)>>>3|0}function jc(a){a=a|0;var b=0,e=0,f=0,g=0,h=0;b=a+8|0;e=c[b>>2]|0;f=(c[a>>2]|0)+(e>>>3)|0;if(f>>>0<(c[a+4>>2]|0)>>>0){g=(d[f>>0]|0)>>>(e&7^7)&1;c[b>>2]=e+1;h=g;return h|0}else{zb[c[a+16>>2]&31](c[a+12>>2]|0);h=0;return h|0}return 0}function kc(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;if((b|0)<=0){e=0;return e|0}f=a+8|0;g=a+4|0;h=a+16|0;i=a+12|0;j=b;b=0;while(1){k=j;j=j+-1|0;l=c[f>>2]|0;m=(c[a>>2]|0)+(l>>>3)|0;if(m>>>0<(c[g>>2]|0)>>>0){n=(d[m>>0]|0)>>>(l&7^7)&1;c[f>>2]=l+1;o=n}else{zb[c[h>>2]&31](c[i>>2]|0);o=0}n=o<<j|b;if((k|0)<=1){e=n;break}else b=n}return e|0}function lc(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;e=a+8|0;f=a+4|0;if((b|0)>0){g=a+16|0;h=a+12|0;i=b;b=0;while(1){j=i;i=i+-1|0;k=c[e>>2]|0;l=(c[a>>2]|0)+(k>>>3)|0;if(l>>>0<(c[f>>2]|0)>>>0){m=(d[l>>0]|0)>>>(k&7^7)&1;c[e>>2]=k+1;n=m}else{zb[c[g>>2]&31](c[h>>2]|0);n=0}m=n<<i|b;if((j|0)<=1){o=m;break}else b=m}}else o=0;b=c[e>>2]|0;i=(c[a>>2]|0)+(b>>>3)|0;if(i>>>0<(c[f>>2]|0)>>>0){f=d[i>>0]|0;c[e>>2]=b+1;return (f&1<<(b&7^7)|0?0-o|0:o)|0}else{zb[c[a+16>>2]&31](c[a+12>>2]|0);return o|0}return 0}function mc(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;e=d[f>>0]|0;g=d[f+1>>0]|0;h=d[f+2>>0]|0;i=a[f+3>>0]|0;f=i&255;a[b>>0]=(e+1+g|0)>>>1;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+j|0)>>>1;a[b+3>>0]=(k+2+(l<<1)+m|0)>>>2;a[b+2>>0]=(f+2+(k<<1)+l|0)>>>2;l=g+2|0;m=(l+(f<<1)+k|0)>>>2&255;a[b+(c+3)>>0]=m;a[b+1>>0]=m;m=((g<<1)+2+h+f|0)>>>2&255;a[b+(e+3)>>0]=m;a[b+(c+1)>>0]=m;m=(l+(h<<1)+i|0)>>>2&255;a[b+(o+3)>>0]=m;a[b+(e|1)>>0]=m;a[b+(o+1)>>0]=(h+2+(i<<1)+j|0)>>>2;return}function sc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;tc(a,b,8,d);return}function tc(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=e+-1|0;if((e|0)>1){h=0;do{i=h;h=h+1|0;a[b+(S(i,c)|0)>>0]=((d[f+i>>0]|0)+1+(d[f+h>>0]|0)|0)>>>1}while((h|0)!=(g|0))}h=f+g|0;i=S(g,c)|0;a[b+i>>0]=a[h>>0]|0;g=b+1|0;j=e+-2|0;k=(e|0)>2;if(k){l=0;do{m=l;l=l+1|0;a[g+(S(m,c)|0)>>0]=((d[f+m>>0]|0)+2+((d[f+l>>0]|0)<<1)+(d[f+(m+2)>>0]|0)|0)>>>2}while((l|0)!=(j|0))}l=d[h>>0]|0;a[g+(S(j,c)|0)>>0]=((d[f+j>>0]|0)+2+l+(l<<1)|0)>>>2;a[g+i>>0]=a[h>>0]|0;g=b+2|0;if(k){k=0;do{a[g+(k+i)>>0]=a[h>>0]|0;k=k+1|0}while((k|0)!=(j|0))}if((e|0)<2|(j|0)==0)return;else n=j;while(1){e=(S(n+1|0,c)|0)+-2|0;k=S(n,c)|0;h=0;do{a[g+(h+k)>>0]=a[g+(e+h)>>0]|0;h=h+1|0}while((h|0)<(j|0));if((n|0)>0)n=n+-1|0;else break}return}function uc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;tc(a,b,16,d);return}function vc(a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>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+29|0,f|0,3)|0;g=j+c|0;e=g;h=b+3|0;i=e+28|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+28|0,f|0,4)|0;j=g+c|0;e=j;h=b+4|0;i=e+27|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+27|0,f|0,5)|0;g=j+c|0;e=g;h=b+5|0;i=e+26|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+26|0,f|0,6)|0;j=g+c|0;e=j;h=b+6|0;i=e+25|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+25|0,f|0,7)|0;g=j+c|0;e=g;h=b+7|0;i=e+24|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+24|0,f|0,8)|0;j=g+c|0;e=j;h=b+8|0;i=e+23|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+23|0,f|0,9)|0;g=j+c|0;e=g;h=b+9|0;i=e+22|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+22|0,f|0,10)|0;j=g+c|0;e=j;h=b+10|0;i=e+21|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+21|0,f|0,11)|0;g=j+c|0;e=g;h=b+11|0;i=e+20|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+20|0,f|0,12)|0;j=g+c|0;e=j;h=b+12|0;i=e+19|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+19|0,f|0,13)|0;g=j+c|0;e=g;h=b+13|0;i=e+18|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+18|0,f|0,14)|0;j=g+c|0;e=j;h=b+14|0;i=e+17|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+17|0,f|0,15)|0;g=j+c|0;e=g;h=b+15|0;i=e+16|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+16|0,f|0,16)|0;j=g+c|0;e=j;h=b+16|0;i=e+15|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+15|0,f|0,17)|0;g=j+c|0;e=g;h=b+17|0;i=e+14|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+14|0,f|0,18)|0;j=g+c|0;e=j;h=b+18|0;i=e+13|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+13|0,f|0,19)|0;g=j+c|0;e=g;h=b+19|0;i=e+12|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+12|0,f|0,20)|0;j=g+c|0;e=j;h=b+20|0;i=e+11|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+11|0,f|0,21)|0;g=j+c|0;e=g;h=b+21|0;i=e+10|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(g+10|0,f|0,22)|0;j=g+c|0;e=j;h=b+22|0;i=e+9|0;do{a[e>>0]=a[h>>0]|0;e=e+1|0;h=h+1|0}while((e|0)<(i|0));Jj(j+9|0,f|0,23)|0;h=j+c|0;j=b+23|0;e=j;i=d[e>>0]|d[e+1>>0]<<8|d[e+2>>0]<<16|d[e+3>>0]<<24;e=j+4|0;j=d[e>>0]|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j+1|0,f|0,31)|0;Jj(j+c|0,f|0,32)|0;return}function Cc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Dc(a,b,8,c,d);return}function Dc(b,c,e,f,g){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;if((e|0)>0){h=0;do{a[b+h>>0]=((d[f+(h+-1)>>0]|0)+1+(d[f+h>>0]|0)|0)>>>1;h=h+1|0}while((h|0)!=(e|0))}h=b+c|0;b=f+-1|0;a[h>>0]=((d[g>>0]|0)+2+((d[b>>0]|0)<<1)+(d[f>>0]|0)|0)>>>2;if((e|0)>1){i=1;do{a[h+i>>0]=((d[f+(i+-2)>>0]|0)+2+((d[f+(i+-1)>>0]|0)<<1)+(d[f+i>>0]|0)|0)>>>2;i=i+1|0}while((i|0)!=(e|0))}i=h+c|0;a[i>>0]=((d[b>>0]|0)+2+((d[g>>0]|0)<<1)+(d[g+1>>0]|0)|0)>>>2;if((e|0)>3){b=3;do{h=b+-2|0;a[i+(S(h,c)|0)>>0]=((d[g+(b+-3)>>0]|0)+2+((d[g+h>>0]|0)<<1)+(d[g+(b+-1)>>0]|0)|0)>>>2;b=b+1|0}while((b|0)!=(e|0))}if((e|0)<=2)return;b=(S(c,-2)|0)+-1|0;g=i;i=2;while(1){h=1;do{a[g+h>>0]=a[g+(b+h)>>0]|0;h=h+1|0}while((h|0)!=(e|0));i=i+1|0;if((i|0)==(e|0))break;else g=g+c|0}return}function Ec(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Dc(a,b,16,c,d);return}function Fc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Dc(a,b,32,c,d);return}function Gc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Hc(a,b,8,c,d);return}function Hc(b,c,e,f,g){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0;h=l;l=l+64|0;i=h;j=e+-2|0;k=(e|0)>2;m=e+-1|0;if(k){n=e+-3|0;o=0;do{a[i+o>>0]=((d[g+(n-o)>>0]|0)+2+((d[g+(j-o)>>0]|0)<<1)+(d[g+(m-o)>>0]|0)|0)>>>2;o=o+1|0}while((o|0)!=(j|0))}o=d[f+-1>>0]|0;n=d[g>>0]|0;a[i+j>>0]=(o+2+(n<<1)+(d[g+1>>0]|0)|0)>>>2;g=a[f>>0]|0;p=g&255;a[i+m>>0]=((o<<1)+2+n+p|0)>>>2;n=a[f+1>>0]|0;m=i+e|0;a[m>>0]=((p<<1)+o+(n&255)+2|0)>>>2;if(k){k=e+1|0;o=g;g=n;n=0;while(1){p=a[f+(n+2)>>0]|0;a[i+(k+n)>>0]=(((g&255)<<1)+(o&255)+(p&255)+2|0)>>>2;n=n+1|0;if((n|0)==(j|0))break;else{q=g;g=p;o=q}}}if((e|0)<=0){l=h;return}o=m+-1|0;m=0;do{Qj(b+(S(m,c)|0)|0,o+(0-m)|0,e|0)|0;m=m+1|0}while((m|0)!=(e|0));l=h;return}function Ic(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Hc(a,b,16,c,d);return}function Jc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Hc(a,b,32,c,d);return}function Kc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Lc(a,b,8,c,d);return}function Lc(b,c,e,f,g){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;h=f+-1|0;a[b>>0]=((d[h>>0]|0)+1+(d[g>>0]|0)|0)>>>1;i=(e|0)>1;if(i){j=1;do{a[b+(S(j,c)|0)>>0]=((d[g+(j+-1)>>0]|0)+1+(d[g+j>>0]|0)|0)>>>1;j=j+1|0}while((j|0)!=(e|0))}j=b+1|0;a[j>>0]=((d[g>>0]|0)+2+((d[h>>0]|0)<<1)+(d[f>>0]|0)|0)>>>2;a[j+c>>0]=((d[h>>0]|0)+2+((d[g>>0]|0)<<1)+(d[g+1>>0]|0)|0)>>>2;h=(e|0)>2;if(h){k=2;do{a[j+(S(k,c)|0)>>0]=((d[g+(k+-2)>>0]|0)+2+((d[g+(k+-1)>>0]|0)<<1)+(d[g+k>>0]|0)|0)>>>2;k=k+1|0}while((k|0)!=(e|0));k=b+2|0;g=e+-2|0;if(h){h=0;do{j=h;h=h+1|0;a[k+j>>0]=((d[f+(j+-1)>>0]|0)+2+((d[f+j>>0]|0)<<1)+(d[f+h>>0]|0)|0)>>>2}while((h|0)!=(g|0));l=k;m=g}else{l=k;m=g}}else{l=b+2|0;m=e+-2|0}if(!i)return;i=-2-c|0;if((e|0)==2)return;else{n=l;o=1}do{n=n+c|0;l=0;do{a[n+l>>0]=a[n+(i+l)>>0]|0;l=l+1|0}while((l|0)<(m|0));o=o+1|0}while((o|0)!=(e|0));return}function Mc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Lc(a,b,16,c,d);return}function Nc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Lc(a,b,32,c,d);return}function Oc(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;f=d[e>>0]|d[e+1>>0]<<8|d[e+2>>0]<<16|d[e+3>>0]<<24;a[b>>0]=f;a[b+1>>0]=f>>8;a[b+2>>0]=f>>16;a[b+3>>0]=f>>24;f=b+c|0;b=d[e>>0]|d[e+1>>0]<<8|d[e+2>>0]<<16|d[e+3>>0]<<24;a[f>>0]=b;a[f+1>>0]=b>>8;a[f+2>>0]=b>>16;a[f+3>>0]=b>>24;b=f+c|0;f=d[e>>0]|d[e+1>>0]<<8|d[e+2>>0]<<16|d[e+3>>0]<<24;a[b>>0]=f;a[b+1>>0]=f>>8;a[b+2>>0]=f>>16;a[b+3>>0]=f>>24;f=b+c|0;c=d[e>>0]|d[e+1>>0]<<8|d[e+2>>0]<<16|d[e+3>>0]<<24;a[f>>0]=c;a[f+1>>0]=c>>8;a[f+2>>0]=c>>16;a[f+3>>0]=c>>24;return}function Pc(b,c,e,f){b=b|0;c=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,h=0;e=b;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));e=b+c|0;f=d;g=e+16|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));return}function Rc(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));h=b+c|0;e=h;f=d;g=e+32|0;do{a[e>>0]=a[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));b=h+c|0;e=b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){p=f+b|0;q=(d[p>>0]|0)-g+(d[e>>0]|0)|0;a[o>>0]=(q|0)>255?-1:((q|0)>0?q:0)&255;q=(d[p>>0]|0)-g+(d[h>>0]|0)|0;a[o+1>>0]=(q|0)>255?-1:((q|0)>0?q:0)&255;q=(d[p>>0]|0)-g+(d[i>>0]|0)|0;a[o+2>>0]=(q|0)>255?-1:((q|0)>0?q:0)&255;q=(d[p>>0]|0)-g+(d[j>>0]|0)|0;a[o+3>>0]=(q|0)>255?-1:((q|0)>0?q:0)&255;q=(d[p>>0]|0)-g+(d[k>>0]|0)|0;a[o+4>>0]=(q|0)>255?-1:((q|0)>0?q:0)&255;q=(d[p>>0]|0)-g+(d[l>>0]|0)|0;a[o+5>>0]=(q|0)>255?-1:((q|0)>0?q:0)&255;q=(d[p>>0]|0)-g+(d[m>>0]|0)|0;a[o+6>>0]=(q|0)>255?-1:((q|0)>0?q:0)&255;q=(d[p>>0]|0)-g+(d[n>>0]|0)|0;a[o+7>>0]=(q|0)>255?-1:((q|0)>0?q:0)&255;b=b+1|0;if((b|0)==8)break;else o=o+c|0}return}function Yc(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=d[e+-1>>0]|0;h=b;b=0;while(1){i=f+b|0;j=0;do{k=(d[i>>0]|0)-g+(d[e+j>>0]|0)|0;a[h+j>>0]=(k|0)>255?-1:((k|0)>0?k:0)&255;j=j+1|0}while((j|0)!=16);b=b+1|0;if((b|0)==16)break;else h=h+c|0}return}function Zc(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=d[e+-1>>0]|0;h=b;b=0;while(1){i=f+b|0;j=0;do{k=(d[i>>0]|0)-g+(d[e+j>>0]|0)|0;a[h+j>>0]=(k|0)>255?-1:((k|0)>0?k:0)&255;j=j+1|0}while((j|0)!=32);b=b+1|0;if((b|0)==32)break;else h=h+c|0}return}function _c(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;a[b>>0]=-2139062144;a[b+1>>0]=-2139062144>>8;a[b+2>>0]=-2139062144>>16;a[b+3>>0]=-2139062144>>24;e=b+c|0;a[e>>0]=-2139062144;a[e+1>>0]=-2139062144>>8;a[e+2>>0]=-2139062144>>16;a[e+3>>0]=-2139062144>>24;b=e+c|0;a[b>>0]=-2139062144;a[b+1>>0]=-2139062144>>8;a[b+2>>0]=-2139062144>>16;a[b+3>>0]=-2139062144>>24;e=b+c|0;a[e>>0]=-2139062144;a[e+1>>0]=-2139062144>>8;a[e+2>>0]=-2139062144>>16;a[e+3>>0]=-2139062144>>24;return}function $c(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;e=b;d=e;a[d>>0]=-2139062144;a[d+1>>0]=-2139062144>>8;a[d+2>>0]=-2139062144>>16;a[d+3>>0]=-2139062144>>24;d=e+4|0;a[d>>0]=-2139062144;a[d+1>>0]=-2139062144>>8;a[d+2>>0]=-2139062144>>16;a[d+3>>0]=-2139062144>>24;d=b+c|0;b=d;e=b;a[e>>0]=-2139062144;a[e+1>>0]=-2139062144>>8;a[e+2>>0]=-2139062144>>16;a[e+3>>0]=-2139062144>>24;e=b+4|0;a[e>>0]=-2139062144;a[e+1>>0]=-2139062144>>8;a[e+2>>0]=-2139062144>>16;a[e+3>>0]=-2139062144>>24;e=d+c|0;d=e;b=d;a[b>>0]=-2139062144;a[b+1>>0]=-2139062144>>8;a[b+2>>0]=-2139062144>>16;a[b+3>>0]=-2139062144>>24;b=d+4|0;a[b>>0]=-2139062144;a[b+1>>0]=-2139062144>>8;a[b+2>>0]=-2139062144>>16;a[b+3>>0]=-2139062144>>24;b=e+c|0;e=b;d=e;a[d>>0]=-2139062144;a[d+1>>0]=-2139062144>>8;a[d+2>>0]=-2139062144>>16;a[d+3>>0]=-2139062144>>24;d=e+4|0;a[d>>0]=-2139062144;a[d+1>>0]=-2139062144>>8;a[d+2>>0]=-2139062144>>16;a[d+3>>0]=-2139062144>>24;d=b+c|0;b=d;e=b;a[e>>0]=-2139062144;a[e+1>>0]=-2139062144>>8;a[e+2>>0]=-2139062144>>16;a[e+3>>0]=-2139062144>>24;e=b+4|0;a[e>>0]=-2139062144;a[e+1>>0]=-2139062144>>8;a[e+2>>0]=-2139062144>>16;a[e+3>>0]=-2139062144>>24;e=d+c|0;d=e;b=d;a[b>>0]=-2139062144;a[b+1>>0]=-2139062144>>8;a[b+2>>0]=-2139062144>>16;a[b+3>>0]=-2139062144>>24;b=d+4|0;a[b>>0]=-2139062144;a[b+1>>0]=-2139062144>>8;a[b+2>>0]=-2139062144>>16;a[b+3>>0]=-2139062144>>24;b=e+c|0;e=b;d=e;a[d>>0]=-2139062144;a[d+1>>0]=-2139062144>>8;a[d+2>>0]=-2139062144>>16;a[d+3>>0]=-2139062144>>24;d=e+4|0;a[d>>0]=-2139062144;a[d+1>>0]=-2139062144>>8;a[d+2>>0]=-2139062144>>16;a[d+3>>0]=-2139062144>>24;d=b+c|0;c=d;a[c>>0]=-2139062144;a[c+1>>0]=-2139062144>>8;a[c+2>>0]=-2139062144>>16;a[c+3>>0]=-2139062144>>24;c=d+4|0;a[c>>0]=-2139062144;a[c+1>>0]=-2139062144>>8;a[c+2>>0]=-2139062144>>16;a[c+3>>0]=-2139062144>>24;return}function ad(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0;e=b;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));e=b+c|0;d=e+16|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));return}function bd(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));f=b+c|0;e=f;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));b=f+c|0;e=b;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));e=b+c|0;d=e+32|0;do{a[e>>0]=128;e=e+1|0}while((e|0)<(d|0));return}function cd(a,b,c,e){a=a|0;b=b|0;c=c|0;e=e|0;c=((d[e+3>>0]|0)+((d[e+2>>0]|0)+((d[e+1>>0]|0)+(d[e>>0]|0)))+2|0)>>>2&255;Jj(a|0,c|0,4)|0;e=a+b|0;Jj(e|0,c|0,4)|0;a=e+b|0;Jj(a|0,c|0,4)|0;Jj(a+b|0,c|0,4)|0;return}function dd(a,b,c,e){a=a|0;b=b|0;c=c|0;e=e|0;c=(((d[e+7>>0]|0)+((d[e+6>>0]|0)+((d[e+5>>0]|0)+((d[e+4>>0]|0)+((d[e+3>>0]|0)+((d[e+2>>0]|0)+((d[e+1>>0]|0)+(d[e>>0]|0)))))))+4|0)/8|0)&255;Jj(a|0,c|0,8)|0;e=a+b|0;Jj(e|0,c|0,8)|0;a=e+b|0;Jj(a|0,c|0,8)|0;e=a+b|0;Jj(e|0,c|0,8)|0;a=e+b|0;Jj(a|0,c|0,8)|0;e=a+b|0;Jj(e|0,c|0,8)|0;a=e+b|0;Jj(a|0,c|0,8)|0;Jj(a+b|0,c|0,8)|0;return}function ed(a,b,c,e){a=a|0;b=b|0;c=c|0;e=e|0;c=(((d[e+15>>0]|0)+((d[e+14>>0]|0)+((d[e+13>>0]|0)+((d[e+12>>0]|0)+((d[e+11>>0]|0)+((d[e+10>>0]|0)+((d[e+9>>0]|0)+((d[e+8>>0]|0)+((d[e+7>>0]|0)+((d[e+6>>0]|0)+((d[e+5>>0]|0)+((d[e+4>>0]|0)+((d[e+3>>0]|0)+((d[e+2>>0]|0)+((d[e+1>>0]|0)+(d[e>>0]|0)))))))))))))))+8|0)/16|0)&255;Jj(a|0,c|0,16)|0;e=a+b|0;Jj(e|0,c|0,16)|0;a=e+b|0;Jj(a|0,c|0,16)|0;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<<4)+10>>1]|0,d[p+5>>0]|0)|0)+r|0;r=(S(b[h+(q<<4)+12>>1]|0,d[p+6>>0]|0)|0)+s|0;s=(S(b[h+(q<<4)+14>>1]|0,d[p+7>>0]|0)|0)+r+64>>7;a[m+n>>0]=(s|0)>255?-1:((s|0)>0?s:0)&255;n=n+1|0;if((n|0)==(k|0))break;else o=o+j|0}c=c+1|0;if((c|0)==(l|0))break;else{m=m+g|0;f=f+e|0}}return}function qd(c,e,f,g,h,i,j,k,l,m){c=c|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;k=h;h=k&-256;j=h;n=k-h>>4;if(!((l|0)>0&(m|0)>0))return;h=f;f=c+-3|0;c=0;while(1){k=0;o=n;while(1){p=f+(o>>4)|0;q=o&15;r=S(b[j+(q<<4)>>1]|0,d[p>>0]|0)|0;s=S(b[j+(q<<4)+2>>1]|0,d[p+1>>0]|0)|0;t=S(b[j+(q<<4)+4>>1]|0,d[p+2>>0]|0)|0;u=S(b[j+(q<<4)+6>>1]|0,d[p+3>>0]|0)|0;v=S(b[j+(q<<4)+8>>1]|0,d[p+4>>0]|0)|0;w=S(b[j+(q<<4)+10>>1]|0,d[p+5>>0]|0)|0;x=S(b[j+(q<<4)+12>>1]|0,d[p+6>>0]|0)|0;y=S(b[j+(q<<4)+14>>1]|0,d[p+7>>0]|0)|0;p=h+k|0;q=r+64+s+t+u+v+w+x+y>>7;a[p>>0]=(((q|0)>255?256:(((q|0)>0?q:0)&255)+1|0)+(d[p>>0]|0)|0)>>>1;k=k+1|0;if((k|0)==(l|0))break;else o=o+i|0}c=c+1|0;if((c|0)==(m|0))break;else{h=h+g|0;f=f+e|0}}return}function rd(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;f=g;g=f&-256;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;c=0;while(1){t=0;u=n;while(1){v=f+(S(u>>4,e)|0)|0;w=u&15;x=S(b[h+(w<<4)>>1]|0,d[v>>0]|0)|0;y=S(b[h+(w<<4)+2>>1]|0,d[v+e>>0]|0)|0;z=S(b[h+(w<<4)+4>>1]|0,d[v+j>>0]|0)|0;A=S(b[h+(w<<4)+6>>1]|0,d[v+i>>0]|0)|0;B=S(b[h+(w<<4)+8>>1]|0,d[v+o>>0]|0)|0;C=S(b[h+(w<<4)+10>>1]|0,d[v+p>>0]|0)|0;D=S(b[h+(w<<4)+12>>1]|0,d[v+q>>0]|0)|0;E=S(b[h+(w<<4)+14>>1]|0,d[v+r>>0]|0)|0;v=s+(S(t,g)|0)|0;w=x+64+y+z+A+B+C+D+E>>7;a[v>>0]=(((w|0)>255?256:(((w|0)>0?w:0)&255)+1|0)+(d[v>>0]|0)|0)>>>1;t=t+1|0;if((t|0)==(m|0))break;else u=u+k|0}c=c+1|0;if((c|0)==(l|0))break;else{s=s+1|0;f=f+1|0}}return}function ud(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,m=0,n=0,o=0,p=0;k=l;l=l+8640|0;m=k;n=e;e=n&-256;o=g;g=o&-256;p=o-g>>4;pd(a+(S(b,-3)|0)|0,b,m,64,e,n-e>>4,f,i,((S(j+-1|0,h)|0)+p>>4)+8|0);sd(m+192|0,64,c,d,g,p,h,i,j);l=k;return}function vd(b,c,e,f,g,h,i,j,k,m){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;n=l;l=l+12736|0;o=n+4096|0;p=n;q=g;g=q&-256;r=i;i=r&-256;s=r-i>>4;pd(b+(S(c,-3)|0)|0,c,o,64,g,q-g>>4,h,k,((S(m+-1|0,j)|0)+s>>4)+8|0);sd(o+192|0,64,p,64,i,s,j,k,m);if((k|0)>0&(m|0)>0){t=e;u=p;v=0}else{l=n;return}while(1){p=0;do{e=t+p|0;a[e>>0]=((d[e>>0]|0)+1+(d[u+p>>0]|0)|0)>>>1;p=p+1|0}while((p|0)!=(k|0));v=v+1|0;if((v|0)==(m|0))break;else{t=t+f|0;u=u+64|0}}l=n;return}function wd(b,c,e,f,g,h,i,j,k,l){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0;if((l|0)>0&(k|0)>0){m=e;n=b;o=0}else return;while(1){b=0;do{e=m+b|0;a[e>>0]=((d[e>>0]|0)+1+(d[n+b>>0]|0)|0)>>>1;b=b+1|0}while((b|0)!=(k|0));o=o+1|0;if((o|0)==(l|0))break;else{m=m+f|0;n=n+c|0}}return}function xd(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0;if((j|0)>0){k=c;l=j;m=a}else return;while(1){Qj(k|0,m|0,i|0)|0;if((l|0)>1){k=k+d|0;l=l+-1|0;m=m+b|0}else break}return}function yd(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;h=e;e=h&-256;pd(a,b,c,d,e,h-e>>4,f,i,j);return}function zd(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;f=g;g=f&-256;sd(a,b,c,d,g,f-g>>4,h,i,j);return}function Ad(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,m=0,n=0,o=0,p=0;k=l;l=l+8640|0;m=k;n=e;e=n&-256;o=g;g=o&-256;p=o-g>>4;pd(a+(S(b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-128)<<24>>24;q=(H?((t|0)<-128?-128:((t|0)<127?t:127)<<24>>24):0)+((G-r|0)*3|0)|0;t=(((q|0)<-128?128:(q|0)<127?q:127)&(((((((B|0)>-1?B:0-B|0)|0)/2|0)+(((C|0)>-1?C:0-C|0)<<1)|0)>(d[e>>0]|0|0)|((((F|0)>-1?F:0-F|0)|0)>(w|0)|((((E|0)>-1?E:0-E|0)|0)>(w|0)|((D|0)>(w|0)|((((z|0)>-1?z:0-z|0)|0)>(w|0)|((((v|0)>-1?v:0-v|0)|0)>(w|0)?1:(((y|0)>-1?y:0-y|0)|0)>(w|0)))))))<<31>>31^255))<<24>>24;w=t+4|0;y=t+3|0;t=(w|0)<-128?-16:((w|0)<127?w:127)<<24>>27;w=G-t|0;a[p>>0]=(w|0)<-128?0:((w|0)<127?w:127)&255^-128;w=((y|0)<-128?-16:((y|0)<127?y:127)<<24>>27)+r|0;a[b>>0]=(w|0)<-128?0:((w|0)<127?w:127)&255^-128;w=((t+1|0)>>>1&(H?0:255))<<24>>24;H=x-w|0;a[s>>0]=(H|0)<-128?0:((H|0)<127?H:127)&255^-128;H=w+u|0;a[A>>0]=(H|0)<-128?0:((H|0)<127?H:127)&255^-128;o=o+1|0;if((o|0)==8)break;else p=p+1|0}return}function Fd(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;Ed(a,b,c,d,e);Ed(a+8|0,b,f,g,h);return}function Gd(b,c,e,f,g){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;if((c|0)!=1){h=0;i=b;while(1){j=i+-2|0;k=a[j>>0]|0;l=i+-1|0;m=a[l>>0]|0;n=a[i>>0]|0;o=i+1|0;p=a[o>>0]|0;q=d[i+-3>>0]|0;r=(d[i+-4>>0]|0)-q|0;s=d[f>>0]|0;t=k&255;u=q-t|0;q=m&255;v=t-q|0;w=(v|0)>-1?v:0-v|0;v=p&255;x=n&255;y=v-x|0;z=(y|0)>-1?y:0-y|0;y=d[i+2>>0]|0;A=y-v|0;B=(d[i+3>>0]|0)-y|0;y=q-x|0;x=t-v|0;v=d[g>>0]|0;t=(w|0)>(v|0)|(z|0)>(v|0);v=(k^-128)<<24>>24;k=(p^-128)<<24>>24;p=v-k|0;q=(n^-128)<<24>>24;n=(m^-128)<<24>>24;m=(t?((p|0)<-128?-128:((p|0)<127?p:127)<<24>>24):0)+((q-n|0)*3|0)|0;p=(((m|0)<-128?128:(m|0)<127?m:127)&(((((((x|0)>-1?x:0-x|0)|0)/2|0)+(((y|0)>-1?y:0-y|0)<<1)|0)>(d[e>>0]|0|0)|((((B|0)>-1?B:0-B|0)|0)>(s|0)|((((A|0)>-1?A:0-A|0)|0)>(s|0)|((z|0)>(s|0)|((w|0)>(s|0)|((((r|0)>-1?r:0-r|0)|0)>(s|0)?1:(((u|0)>-1?u:0-u|0)|0)>(s|0)))))))<<31>>31^255))<<24>>24;s=p+4|0;u=p+3|0;p=(s|0)<-128?-16:((s|0)<127?s:127)<<24>>27;s=q-p|0;a[i>>0]=(s|0)<-128?0:((s|0)<127?s:127)&255^-128;s=((u|0)<-128?-16:((u|0)<127?u:127)<<24>>27)+n|0;a[l>>0]=(s|0)<-128?0:((s|0)<127?s:127)&255^-128;s=((p+1|0)>>>1&(t?0:255))<<24>>24;t=k-s|0;a[o>>0]=(t|0)<-128?0:((t|0)<127?t:127)&255^-128;t=s+v|0;a[j>>0]=(t|0)<-128?0:((t|0)<127?t:127)&255^-128;h=h+1|0;if((h|0)==8)break;else i=i+c|0}return}i=0;h=b;t=a[b>>0]|0;while(1){b=h+-2|0;j=a[b>>0]|0;v=h+-1|0;s=a[v>>0]|0;o=h+1|0;k=a[o>>0]|0;p=d[h+-3>>0]|0;l=(d[h+-4>>0]|0)-p|0;n=d[f>>0]|0;u=j&255;q=p-u|0;p=s&255;r=u-p|0;w=(r|0)>-1?r:0-r|0;r=k&255;z=t&255;A=r-z|0;B=(A|0)>-1?A:0-A|0;A=d[h+2>>0]|0;y=A-r|0;x=(d[h+3>>0]|0)-A|0;A=p-z|0;z=u-r|0;r=d[g>>0]|0;u=(w|0)>(r|0)|(B|0)>(r|0);r=(j^-128)<<24>>24;j=(k^-128)<<24>>24;k=r-j|0;p=(t^-128)<<24>>24;m=(s^-128)<<24>>24;s=(u?((k|0)<-128?-128:((k|0)<127?k:127)<<24>>24):0)+((p-m|0)*3|0)|0;k=(((s|0)<-128?128:(s|0)<127?s:127)&(((((((z|0)>-1?z:0-z|0)|0)/2|0)+(((A|0)>-1?A:0-A|0)<<1)|0)>(d[e>>0]|0|0)|((((x|0)>-1?x:0-x|0)|0)>(n|0)|((((y|0)>-1?y:0-y|0)|0)>(n|0)|((B|0)>(n|0)|((w|0)>(n|0)|((((l|0)>-1?l:0-l|0)|0)>(n|0)?1:(((q|0)>-1?q:0-q|0)|0)>(n|0)))))))<<31>>31^255))<<24>>24;n=k+4|0;q=k+3|0;k=(n|0)<-128?-16:((n|0)<127?n:127)<<24>>27;n=p-k|0;a[h>>0]=(n|0)<-128?0:((n|0)<127?n:127)&255^-128;n=((q|0)<-128?-16:((q|0)<127?q:127)<<24>>27)+m|0;a[v>>0]=(n|0)<-128?0:((n|0)<127?n:127)&255^-128;n=((k+1|0)>>>1&(u?0:255))<<24>>24;u=j-n|0;t=(u|0)<-128?0:((u|0)<127?u:127)&255^-128;a[o>>0]=t;o=n+r|0;a[b>>0]=(o|0)<-128?0:((o|0)<127?o:127)&255^-128;i=i+1|0;if((i|0)==8)break;else h=h+c|0}return}function Hd(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;Gd(a,b,c,d,e);Gd(a+(b<<3)|0,b,f,g,h);return}function Id(b,c,e,f,g){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0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0,s=0;if(b<<24>>24==0|e<<24>>24==0){e=a[h>>0]|0;n=a[i>>0]|0;o=a[j>>0]|0;p=a[k>>0]|0;q=(e&255)-(n&255)|0;r=c&255;c=(p&255)-(o&255)|0;s=(((q|0)>-1?q:0-q|0)|0)>(r|0)?1:(((c|0)>-1?c:0-c|0)|0)>(r|0);r=(e^-128)<<24>>24;e=(p^-128)<<24>>24;p=r-e|0;c=(o^-128)<<24>>24;o=(n^-128)<<24>>24;n=(s?((p|0)<-128?-128:((p|0)<127?p:127)<<24>>24):0)+((c-o|0)*3|0)|0;p=(((n|0)<-128?-128:((n|0)<127?n:127)&255)&b)<<24>>24;b=p+4|0;n=p+3|0;p=(b|0)<-128?-16:((b|0)<127?b:127)<<24>>27;b=c-p|0;a[j>>0]=(b|0)<-128?0:((b|0)<127?b:127)&255^-128;b=((n|0)<-128?-16:((n|0)<127?n:127)<<24>>27)+o|0;a[i>>0]=(b|0)<-128?0:((b|0)<127?b:127)&255^-128;b=((p+1|0)>>>1&(s?0:255))<<24>>24;s=e-b|0;a[k>>0]=(s|0)<-128?0:((s|0)<127?s:127)&255^-128;s=b+r|0;a[h>>0]=(s|0)<-128?0:((s|0)<127?s:127)&255^-128;return}else{s=a[k>>0]|0;r=a[l>>0]|0;b=a[m>>0]|0;m=d[f>>0]|0;f=d[g>>0]|0;e=d[h>>0]|0;p=d[i>>0]|0;o=d[j>>0]|0;a[g>>0]=((m*3|0)+4+(f<<1)+e+p+o|0)>>>3;g=s&255;s=f+4|0;a[h>>0]=(s+p+o+(e+m<<1)+g|0)>>>3;h=r&255;a[i>>0]=(m+4+f+e+(p<<1)+o+g+h|0)>>>3;f=b&255;a[j>>0]=(s+e+p+(o<<1)+g+h+f|0)>>>3;a[k>>0]=(e+4+p+o+h+(f+g<<1)|0)>>>3;a[l>>0]=(p+4+o+g+(h<<1)+(f*3|0)|0)>>>3;return}}function Kd(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0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)-R|0;Pd((((((((Z|0)>-1?Z:0-Z|0)|0)/2|0)+(((Y|0)>-1?Y:0-Y|0)<<1)|0)>(d[e>>0]|0|0)|((((X|0)>-1?X:0-X|0)|0)>(L|0)|((((V|0)>-1?V:0-V|0)|0)>(L|0)|((U|0)>(L|0)|((Q|0)>(L|0)|((((K|0)>-1?K:0-K|0)|0)>(L|0)?1:(((N|0)>-1?N:0-N|0)|0)>(L|0)))))))<<31>>31^255)&255,a[g>>0]|0,(((((I|0)>-1?I:0-I|0)|0)>1|((((T|0)>-1?T:0-T|0)|0)>1|((((J|0)>-1?J:0-J|0)|0)>1|((((P|0)>-1?P:0-P|0)|0)>1|((Q|0)>1|(U|0)>1)))))<<31>>31^255)&255,((((ga|0)>-1?ga:0-ga|0)|0)>1?1:(((O|0)>-1?O:0-O|0)|0)>1)?0:(((((fa|0)>-1?fa:0-fa|0)|0)>1|((((ea|0)>-1?ea:0-ea|0)|0)>1|((((da|0)>-1?da:0-da|0)|0)>1|((((ca|0)>-1?ca:0-ca|0)|0)>1|((((aa|0)>-1?aa:0-aa|0)|0)>1?1:(((ba|0)>-1?ba:0-ba|0)|0)>1)))))<<31>>31^255)&255,E+w|0,E+x|0,E+y|0,E+z|0,E+A|0,E+B|0,E+C|0,b,E,F,G,H,W,M,_,$);D=D+1|0;if((D|0)>=(i|0))break;else E=E+1|0}return}function Pd(b,c,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;t=t|0;u=u|0;v=v|0;var w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;if(b<<24>>24==0|(e<<24>>24==0|f<<24>>24==0)){Jd(b,c,e,k,l,m,n,o,p,q,r);return}else{e=a[p>>0]|0;c=a[q>>0]|0;b=a[r>>0]|0;f=a[s>>0]|0;w=a[t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>>2)-j|0;c=p-n>>1;k=c-j|0;j=c-o|0;b[h+24>>1]=p-k;b[h+26>>1]=k;b[h+28>>1]=j;b[h+30>>1]=j+n;n=f<<1;j=f*3|0;k=m;m=e;e=0;p=h;while(1){h=k<<16>>16;o=b[p+24>>1]|0;c=h+(b[p>>1]|0)|0;i=(b[p+16>>1]|0)-o|0;q=c-i>>1;r=q-o|0;o=q-h|0;h=c-r+(d[m>>0]|0)|0;a[m>>0]=(h|0)>255?-1:((h|0)>0?h:0)&255;h=m+f|0;c=r+(d[h>>0]|0)|0;a[h>>0]=(c|0)>255?-1:((c|0)>0?c:0)&255;c=m+n|0;h=(d[c>>0]|0)+o|0;a[c>>0]=(h|0)>255?-1:((h|0)>0?h:0)&255;h=m+j|0;c=o+i+(d[h>>0]|0)|0;a[h>>0]=(c|0)>255?-1:((c|0)>0?c:0)&255;c=e+1|0;if((c|0)==4)break;k=b[p+10>>1]|0;m=m+1|0;e=c;p=p+2|0}l=g;return}function Vd(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0;g=l;l=l+16|0;h=g;i=b[c>>1]|0;c=i>>3;j=(i>>>2)-c&65535;b[h>>1]=j;i=c&65535;b[h+6>>1]=i;b[h+4>>1]=i;b[h+2>>1]=i;i=f<<1;c=f*3|0;k=j;j=e;e=0;m=h;while(1){h=k<<16>>16;n=h>>1;o=h-n+(d[j>>0]|0)|0;a[j>>0]=(o|0)>255?-1:((o|0)>0?o:0)&255;o=j+f|0;h=(d[o>>0]|0)+n|0;a[o>>0]=(h|0)>255?-1:((h|0)>0?h:0)&255;h=j+i|0;o=(d[h>>0]|0)+n|0;a[h>>0]=(o|0)>255?-1:((o|0)>0?o:0)&255;o=j+c|0;h=(d[o>>0]|0)+n|0;a[o>>0]=(h|0)>255?-1:((h|0)>0?h:0)&255;h=m+2|0;o=e+1|0;if((o|0)==4)break;k=b[h>>1]|0;j=j+1|0;e=o;m=h}l=g;return}function Wd(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=b[a>>1]|0;e=b[a+4>>1]|0;f=b[a+2>>1]|0;g=b[a+6>>1]|0;a=((f*6270|0)+8192+(S(g,-15137)|0)|0)>>>14;h=(((e+d|0)*11585|0)+8192|0)>>>14<<16>>16;i=((f*15137|0)+8192+(g*6270|0)|0)>>>14<<16>>16;b[c>>1]=i+h;g=(((d-e|0)*11585|0)+8192|0)>>>14<<16>>16;e=a<<16>>16;b[c+2>>1]=e+g;b[c+4>>1]=g-e;b[c+6>>1]=h-i;return}function Xd(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;g=l;l=l+32|0;h=g;i=0;j=c;c=h;while(1){k=b[j>>1]|0;m=b[j+4>>1]|0;n=b[j+2>>1]|0;o=b[j+6>>1]|0;p=((n*6270|0)+8192+(S(o,-15137)|0)|0)>>>14;q=(((m+k|0)*11585|0)+8192|0)>>>14<<16>>16;r=((n*15137|0)+8192+(o*6270|0)|0)>>>14<<16>>16;b[c>>1]=r+q;o=(((k-m|0)*11585|0)+8192|0)>>>14<<16>>16;m=p<<16>>16;b[c+2>>1]=m+o;b[c+4>>1]=o-m;b[c+6>>1]=q-r;i=i+1|0;if((i|0)==4)break;else{j=j+8|0;c=c+8|0}}c=f<<1;j=f*3|0;i=0;do{r=b[h+(i<<1)>>1]|0;q=b[h+(i+8<<1)>>1]|0;m=b[h+(i+4<<1)>>1]|0;o=b[h+(i+12<<1)>>1]|0;p=(((q+r|0)*11585|0)+8192|0)>>>14<<16>>16;k=((m*15137|0)+8192+(o*6270|0)|0)>>>14<<16>>16;n=(((r-q|0)*11585|0)+8192|0)>>>14<<16>>16;q=((m*6270|0)+8192+(S(o,-15137)|0)|0)>>>14<<16>>16;o=e+i|0;m=((k+p<<16>>16)+8>>4)+(d[o>>0]|0)|0;a[o>>0]=(m|0)>255?-1:((m|0)>0?m:0)&255;m=e+(i+f)|0;o=((q+n<<16>>16)+8>>4)+(d[m>>0]|0)|0;a[m>>0]=(o|0)>255?-1:((o|0)>0?o:0)&255;o=e+(c+i)|0;m=((n-q<<16>>16)+8>>4)+(d[o>>0]|0)|0;a[o>>0]=(m|0)>255?-1:((m|0)>0?m:0)&255;m=e+(j+i)|0;o=((p-k<<16>>16)+8>>4)+(d[m>>0]|0)|0;a[m>>0]=(o|0)>255?-1:((o|0)>0?o:0)&255;i=i+1|0}while((i|0)!=4);l=g;return}function Yd(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0;g=(((((((b[c>>1]|0)*11585|0)+8192|0)>>>14<<16>>16)*11585|0)+8192|0)>>>14<<16>>16)+8>>4;c=(d[e>>0]|0)+g|0;a[e>>0]=(c|0)>255?-1:((c|0)>0?c:0)&255;c=e+1|0;h=(d[c>>0]|0)+g|0;a[c>>0]=(h|0)>255?-1:((h|0)>0?h:0)&255;h=e+2|0;c=(d[h>>0]|0)+g|0;a[h>>0]=(c|0)>255?-1:((c|0)>0?c:0)&255;c=e+3|0;h=(d[c>>0]|0)+g|0;a[c>>0]=(h|0)>255?-1:((h|0)>0?h:0)&255;h=e+f|0;e=(d[h>>0]|0)+g|0;a[h>>0]=(e|0)>255?-1:((e|0)>0?e:0)&255;e=h+1|0;c=(d[e>>0]|0)+g|0;a[e>>0]=(c|0)>255?-1:((c|0)>0?c:0)&255;c=h+2|0;e=(d[c>>0]|0)+g|0;a[c>>0]=(e|0)>255?-1:((e|0)>0?e:0)&255;e=h+3|0;c=(d[e>>0]|0)+g|0;a[e>>0]=(c|0)>255?-1:((c|0)>0?c:0)&255;c=h+f|0;h=(d[c>>0]|0)+g|0;a[c>>0]=(h|0)>255?-1:((h|0)>0?h:0)&255;h=c+1|0;e=(d[h>>0]|0)+g|0;a[h>>0]=(e|0)>255?-1:((e|0)>0?e:0)&255;e=c+2|0;h=(d[e>>0]|0)+g|0;a[e>>0]=(h|0)>255?-1:((h|0)>0?h:0)&255;h=c+3|0;e=(d[h>>0]|0)+g|0;a[h>>0]=(e|0)>255?-1:((e|0)>0?e:0)&255;e=c+f|0;f=(d[e>>0]|0)+g|0;a[e>>0]=(f|0)>255?-1:((f|0)>0?f:0)&255;f=e+1|0;c=(d[f>>0]|0)+g|0;a[f>>0]=(c|0)>255?-1:((c|0)>0?c:0)&255;c=e+2|0;f=(d[c>>0]|0)+g|0;a[c>>0]=(f|0)>255?-1:((f|0)>0?f:0)&255;f=e+3|0;e=(d[f>>0]|0)+g|0;a[f>>0]=(e|0)>255?-1:((e|0)>0?e:0)&255;return}function Zd(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;d=b[a+2>>1]|0;e=b[a+14>>1]|0;f=((d*3196|0)+8192+(S(e,-16069)|0)|0)>>>14;g=b[a+10>>1]|0;h=b[a+6>>1]|0;i=b[a>>1]|0;j=b[a+8>>1]|0;k=b[a+4>>1]|0;l=b[a+12>>1]|0;a=f<<16>>16;f=((g*13623|0)+8192+(S(h,-9102)|0)|0)>>>14<<16>>16;m=((g*9102|0)+8192+(h*13623|0)|0)>>>14<<16>>16;h=((d*16069|0)+8192+(e*3196|0)|0)>>>14<<16>>16;e=(((j+i|0)*11585|0)+8192|0)>>>14<<16>>16;d=((k*15137|0)+8192+(l*6270|0)|0)>>>14<<16>>16;g=(((i-j|0)*11585|0)+8192|0)>>>14<<16>>16;j=((k*6270|0)+8192+(S(l,-15137)|0)|0)>>>14<<16>>16;l=h-m<<16>>16;k=a-f<<16>>16;i=d+e<<16>>16;n=m+h<<16>>16;b[c>>1]=n+i;h=j+g<<16>>16;m=(((k+l|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+2>>1]=m+h;o=g-j<<16>>16;j=(((l-k|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+4>>1]=j+o;k=e-d<<16>>16;d=f+a<<16>>16;b[c+6>>1]=d+k;b[c+8>>1]=k-d;b[c+10>>1]=o-j;b[c+12>>1]=h-m;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]|0)+16>>5)+(d[F>>0]|0)|0;a[F>>0]=(G|0)>255?-1:((G|0)>0?G:0)&255;G=e+(y+E)|0;F=((b[z>>1]|0)+16>>5)+(d[G>>0]|0)|0;a[G>>0]=(F|0)>255?-1:((F|0)>0?F:0)&255;F=e+(A+E)|0;G=((b[B>>1]|0)+16>>5)+(d[F>>0]|0)|0;a[F>>0]=(G|0)>255?-1:((G|0)>0?G:0)&255;G=e+(C+E)|0;F=((b[D>>1]|0)+16>>5)+(d[G>>0]|0)|0;a[G>>0]=(F|0)>255?-1:((F|0)>0?F:0)&255;E=E+1|0}while((E|0)!=8);l=g;return}function $d(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;g=(((((((b[c>>1]|0)*11585|0)+8192|0)>>>14<<16>>16)*11585|0)+8192|0)>>>14<<16>>16)+16>>5;if((f|0)!=1){c=e;h=0;while(1){i=(d[c>>0]|0)+g|0;a[c>>0]=(i|0)>255?-1:((i|0)>0?i:0)&255;i=c+1|0;j=(d[i>>0]|0)+g|0;a[i>>0]=(j|0)>255?-1:((j|0)>0?j:0)&255;j=c+2|0;i=(d[j>>0]|0)+g|0;a[j>>0]=(i|0)>255?-1:((i|0)>0?i:0)&255;i=c+3|0;j=(d[i>>0]|0)+g|0;a[i>>0]=(j|0)>255?-1:((j|0)>0?j:0)&255;j=c+4|0;i=(d[j>>0]|0)+g|0;a[j>>0]=(i|0)>255?-1:((i|0)>0?i:0)&255;i=c+5|0;j=(d[i>>0]|0)+g|0;a[i>>0]=(j|0)>255?-1:((j|0)>0?j:0)&255;j=c+6|0;i=(d[j>>0]|0)+g|0;a[j>>0]=(i|0)>255?-1:((i|0)>0?i:0)&255;i=c+7|0;j=(d[i>>0]|0)+g|0;a[i>>0]=(j|0)>255?-1:((j|0)>0?j:0)&255;h=h+1|0;if((h|0)==8)break;else c=c+f|0}return}c=e;h=0;j=a[e+6>>0]|0;while(1){e=(d[c>>0]|0)+g|0;a[c>>0]=(e|0)>255?-1:((e|0)>0?e:0)&255;e=c+1|0;i=(d[e>>0]|0)+g|0;a[e>>0]=(i|0)>255?-1:((i|0)>0?i:0)&255;i=c+2|0;e=(d[i>>0]|0)+g|0;a[i>>0]=(e|0)>255?-1:((e|0)>0?e:0)&255;e=c+3|0;i=(d[e>>0]|0)+g|0;a[e>>0]=(i|0)>255?-1:((i|0)>0?i:0)&255;i=c+4|0;e=(d[i>>0]|0)+g|0;a[i>>0]=(e|0)>255?-1:((e|0)>0?e:0)&255;e=c+5|0;i=(d[e>>0]|0)+g|0;a[e>>0]=(i|0)>255?-1:((i|0)>0?i:0)&255;i=(j&255)+g|0;a[c+6>>0]=(i|0)>255?-1:((i|0)>0?i:0)&255;i=c+7|0;e=(d[i>>0]|0)+g|0;j=(e|0)>255?-1:((e|0)>0?e:0)&255;a[i>>0]=j;h=h+1|0;if((h|0)==8)break;else c=c+f|0}return}function ae(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=b[a>>1]|0;e=b[a+2>>1]|0;f=b[a+4>>1]|0;g=b[a+6>>1]|0;a=d<<16>>16;h=f<<16>>16;i=g<<16>>16;if(!((e|d|f|g)<<16>>16)){g=c;f=g;b[f>>1]=0;b[f+2>>1]=0>>>16;f=g+4|0;b[f>>1]=0;b[f+2>>1]=0>>>16;return}else{f=(e<<16>>16)*13377|0;e=(h*15212|0)+(a*5283|0)+(i*9929|0)|0;g=(S(h,-5283)|0)+(a*9929|0)+(S(i,-15212)|0)|0;d=f+8192|0;b[c>>1]=(d+e|0)>>>14;b[c+2>>1]=(d+g|0)>>>14;b[c+4>>1]=(((a-h+i|0)*13377|0)+8192|0)>>>14;b[c+6>>1]=(8192-f+g+e|0)>>>14;return}}function be(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=b[a+14>>1]|0;e=d<<16>>16;f=b[a>>1]|0;g=f<<16>>16;h=b[a+10>>1]|0;i=h<<16>>16;j=b[a+4>>1]|0;k=j<<16>>16;l=b[a+6>>1]|0;m=l<<16>>16;n=b[a+8>>1]|0;o=n<<16>>16;p=b[a+2>>1]|0;q=p<<16>>16;r=b[a+12>>1]|0;a=r<<16>>16;if(!((f|d|h|j|l|n|p|r)<<16>>16)){b[c>>1]=0;b[c+2>>1]=0;b[c+4>>1]=0;b[c+6>>1]=0;b[c+8>>1]=0;b[c+10>>1]=0;b[c+12>>1]=0;b[c+14>>1]=0;return}else{r=(o*12665|0)+(m*10394|0)|0;p=(S(o,-10394)|0)+(m*12665|0)|0;m=(a*15679|0)+(q*4756|0)|0;o=(S(a,-4756)|0)+(q*15679|0)|0;q=(g*1606|0)+(e*16305|0)+8192|0;a=q+r>>14;n=(S(g,-16305)|0)+(e*1606|0)+8192|0;e=n+p>>14;g=(k*7723|0)+(i*14449|0)+8192|0;l=g+m>>14;j=(S(k,-14449)|0)+(i*7723|0)+8192|0;i=j+o>>14;k=q-r>>14;r=n-p>>14;p=g-m>>14;m=j-o>>14;o=(S(p,-6270)|0)+(m*15137|0)|0;j=(p*15137|0)+(m*6270|0)|0;m=a-l|0;p=e-i|0;g=(k*15137|0)+(r*6270|0)+8192|0;n=(k*6270|0)+(S(r,-15137)|0)+8192|0;r=g-o>>14;k=n-j>>14;b[c>>1]=l+a;b[c+2>>1]=0-((g+o|0)>>>14);b[c+4>>1]=(((r+k|0)*11585|0)+8192|0)>>>14;b[c+6>>1]=0-((((m+p|0)*11585|0)+8192|0)>>>14);b[c+8>>1]=(((m-p|0)*11585|0)+8192|0)>>>14;b[c+10>>1]=0-((((r-k|0)*11585|0)+8192|0)>>>14);b[c+12>>1]=(n+j|0)>>>14;b[c+14>>1]=0-(e+i);return}}function ce(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;g=l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d[F>>0]|0)|0;a[F>>0]=(G|0)>255?-1:((G|0)>0?G:0)&255;G=e+(C+E)|0;F=((b[D>>1]|0)+16>>5)+(d[G>>0]|0)|0;a[G>>0]=(F|0)>255?-1:((F|0)>0?F:0)&255;E=E+1|0}while((E|0)!=8);l=g;return}function de(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;d=b[a+2>>1]|0;e=b[a+30>>1]|0;f=b[a+18>>1]|0;g=b[a+14>>1]|0;h=b[a+10>>1]|0;i=b[a+22>>1]|0;j=b[a+26>>1]|0;k=b[a+6>>1]|0;l=b[a+4>>1]|0;m=b[a+28>>1]|0;n=b[a+20>>1]|0;o=b[a+12>>1]|0;p=((d*1606|0)+8192+(S(e,-16305)|0)|0)>>>14<<16>>16;q=((f*12665|0)+8192+(S(g,-10394)|0)|0)>>>14<<16>>16;r=((h*7723|0)+8192+(S(i,-14449)|0)|0)>>>14<<16>>16;s=((j*15679|0)+8192+(S(k,-4756)|0)|0)>>>14<<16>>16;t=((j*4756|0)+8192+(k*15679|0)|0)>>>14<<16>>16;k=((h*14449|0)+8192+(i*7723|0)|0)>>>14<<16>>16;i=((f*10394|0)+8192+(g*12665|0)|0)>>>14<<16>>16;g=((d*16305|0)+8192+(e*1606|0)|0)>>>14<<16>>16;e=b[a>>1]|0;d=b[a+16>>1]|0;f=b[a+8>>1]|0;h=b[a+24>>1]|0;a=((l*3196|0)+8192+(S(m,-16069)|0)|0)>>>14<<16>>16;j=((n*13623|0)+8192+(S(o,-9102)|0)|0)>>>14<<16>>16;u=((n*9102|0)+8192+(o*13623|0)|0)>>>14<<16>>16;o=((l*16069|0)+8192+(m*3196|0)|0)>>>14<<16>>16;m=p-q<<16>>16;l=g-i<<16>>16;n=s-r<<16>>16;v=t-k<<16>>16;w=(((d+e|0)*11585|0)+8192|0)>>>14<<16>>16;x=((f*15137|0)+8192+(h*6270|0)|0)>>>14<<16>>16;y=(((e-d|0)*11585|0)+8192|0)>>>14<<16>>16;d=((f*6270|0)+8192+(S(h,-15137)|0)|0)>>>14<<16>>16;h=o-u<<16>>16;f=a-j<<16>>16;e=p+q<<16>>16;q=r+s<<16>>16;s=((l*6270|0)+8192+(S(m,-15137)|0)|0)>>>14<<16>>16;r=((S(v,-15137)|0)+8192+(S(n,-6270)|0)|0)>>>14<<16>>16;p=k+t<<16>>16;t=g+i<<16>>16;i=((v*6270|0)+8192+(S(n,-15137)|0)|0)>>>14<<16>>16;n=((l*15137|0)+8192+(m*6270|0)|0)>>>14<<16>>16;m=x+w<<16>>16;l=o+u<<16>>16;u=d+y<<16>>16;o=(((f+h|0)*11585|0)+8192|0)>>>14<<16>>16;v=y-d<<16>>16;d=(((h-f|0)*11585|0)+8192|0)>>>14<<16>>16;f=w-x<<16>>16;x=a+j<<16>>16;j=s-r<<16>>16;a=n-i<<16>>16;w=e-q<<16>>16;h=t-p<<16>>16;y=l+m<<16>>16;g=t+p<<16>>16;b[c>>1]=g+y;p=o+u<<16>>16;t=n+i<<16>>16;b[c+2>>1]=t+p;i=d+v<<16>>16;n=(((j+a|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+4>>1]=n+i;k=x+f<<16>>16;z=(((w+h|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+6>>1]=z+k;A=f-x<<16>>16;x=(((h-w|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+8>>1]=x+A;w=v-d<<16>>16;d=(((a-j|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+10>>1]=d+w;j=u-o<<16>>16;o=s+r<<16>>16;b[c+12>>1]=o+j;r=m-l<<16>>16;l=e+q<<16>>16;b[c+14>>1]=l+r;b[c+16>>1]=r-l;b[c+18>>1]=j-o;b[c+20>>1]=w-d;b[c+22>>1]=A-x;b[c+24>>1]=k-z;b[c+26>>1]=i-n;b[c+28>>1]=p-t;b[c+30>>1]=y-g;return}function ee(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;g=l;l=l+576|0;h=g+64|0;i=g+32|0;j=g;de(c,h);de(c+32|0,h+32|0);de(c+64|0,h+64|0);de(c+96|0,h+96|0);de(c+128|0,h+128|0);de(c+160|0,h+160|0);de(c+192|0,h+192|0);de(c+224|0,h+224|0);de(c+256|0,h+256|0);de(c+288|0,h+288|0);de(c+320|0,h+320|0);de(c+352|0,h+352|0);de(c+384|0,h+384|0);de(c+416|0,h+416|0);de(c+448|0,h+448|0);de(c+480|0,h+480|0);c=i+2|0;k=i+4|0;m=i+6|0;n=i+8|0;o=i+10|0;p=i+12|0;q=i+14|0;r=i+16|0;s=i+18|0;t=i+20|0;u=i+22|0;v=i+24|0;w=i+26|0;x=i+28|0;y=i+30|0;z=0;do{b[i>>1]=b[h+(z<<1)>>1]|0;b[c>>1]=b[h+(z+16<<1)>>1]|0;b[k>>1]=b[h+(z+32<<1)>>1]|0;b[m>>1]=b[h+(z+48<<1)>>1]|0;b[n>>1]=b[h+(z+64<<1)>>1]|0;b[o>>1]=b[h+(z+80<<1)>>1]|0;b[p>>1]=b[h+(z+96<<1)>>1]|0;b[q>>1]=b[h+(z+112<<1)>>1]|0;b[r>>1]=b[h+(z+128<<1)>>1]|0;b[s>>1]=b[h+(z+144<<1)>>1]|0;b[t>>1]=b[h+(z+160<<1)>>1]|0;b[u>>1]=b[h+(z+176<<1)>>1]|0;b[v>>1]=b[h+(z+192<<1)>>1]|0;b[w>>1]=b[h+(z+208<<1)>>1]|0;b[x>>1]=b[h+(z+224<<1)>>1]|0;b[y>>1]=b[h+(z+240<<1)>>1]|0;de(i,j);A=0;do{B=e+((S(A,f)|0)+z)|0;C=((b[j+(A<<1)>>1]|0)+32>>6)+(d[B>>0]|0)|0;a[B>>0]=(C|0)>255?-1:((C|0)>0?C:0)&255;A=A+1|0}while((A|0)!=16);z=z+1|0}while((z|0)!=16);l=g;return}function fe(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;d=b[a+30>>1]|0;e=d<<16>>16;f=b[a>>1]|0;g=f<<16>>16;h=b[a+26>>1]|0;i=h<<16>>16;j=b[a+4>>1]|0;k=j<<16>>16;l=b[a+22>>1]|0;m=l<<16>>16;n=b[a+8>>1]|0;o=n<<16>>16;p=b[a+18>>1]|0;q=p<<16>>16;r=b[a+12>>1]|0;s=r<<16>>16;t=b[a+14>>1]|0;u=t<<16>>16;v=b[a+16>>1]|0;w=v<<16>>16;x=b[a+10>>1]|0;y=x<<16>>16;z=b[a+20>>1]|0;A=z<<16>>16;B=b[a+6>>1]|0;C=B<<16>>16;D=b[a+24>>1]|0;E=D<<16>>16;F=b[a+2>>1]|0;G=F<<16>>16;H=b[a+28>>1]|0;a=H<<16>>16;if(!((f|d|h|j|l|n|p|r|t|v|x|z|B|D|F|H)<<16>>16)){H=c;F=H+32|0;do{b[H>>1]=0;H=H+2|0}while((H|0)<(F|0));return}else{H=(w*12140|0)+(u*11003|0)|0;F=(S(w,-11003)|0)+(u*12140|0)|0;u=(A*14053|0)+(y*8423|0)|0;w=(S(A,-8423)|0)+(y*14053|0)|0;y=(E*15426|0)+(C*5520|0)|0;A=(S(E,-5520)|0)+(C*15426|0)|0;C=(a*16207|0)+(G*2404|0)|0;E=(S(a,-2404)|0)+(G*16207|0)|0;G=(g*804|0)+(e*16364|0)+8192|0;a=G+H>>14;D=(S(g,-16364)|0)+(e*804|0)+8192|0;e=D+F>>14;g=(k*3981|0)+(i*15893|0)+8192|0;B=g+u>>14;z=(S(k,-15893)|0)+(i*3981|0)+8192|0;i=z+w>>14;k=(o*7005|0)+(m*14811|0)+8192|0;x=k+y>>14;v=(S(o,-14811)|0)+(m*7005|0)+8192|0;m=v+A>>14;o=(s*9760|0)+(q*13160|0)+8192|0;t=o+C>>14;r=(S(s,-13160)|0)+(q*9760|0)+8192|0;q=r+E>>14;s=G-H>>14;H=D-F>>14;F=g-u>>14;u=z-w>>14;w=k-y>>14;y=v-A>>14;A=o-C>>14;C=r-E>>14;E=(S(w,-3196)|0)+(y*16069|0)|0;r=(w*16069|0)+(y*3196|0)|0;y=(S(A,-13623)|0)+(C*9102|0)|0;w=(A*9102|0)+(C*13623|0)|0;C=x+a|0;A=m+e|0;o=t+B|0;v=q+i|0;k=a-x|0;x=e-m|0;m=B-t|0;t=i-q|0;q=(s*16069|0)+(H*3196|0)+8192|0;i=q+E>>14;B=(s*3196|0)+(S(H,-16069)|0)+8192|0;H=B+r>>14;s=(F*9102|0)+(u*13623|0)+8192|0;e=s+y>>14;a=(F*13623|0)+(S(u,-9102)|0)+8192|0;u=a+w>>14;F=q-E>>14;E=B-r>>14;r=s-y>>14;y=a-w>>14;w=(S(m,-6270)|0)+(t*15137|0)|0;a=(m*15137|0)+(t*6270|0)|0;t=(S(r,-6270)|0)+(y*15137|0)|0;m=(r*15137|0)+(y*6270|0)|0;y=C-o|0;r=A-v|0;s=(k*15137|0)+(x*6270|0)+8192|0;B=(k*6270|0)+(S(x,-15137)|0)+8192|0;x=s-w>>14;k=B-a>>14;q=i-e|0;z=H-u|0;g=(F*15137|0)+(E*6270|0)+8192|0;D=(F*6270|0)+(S(E,-15137)|0)+8192|0;E=g-t>>14;F=D-m>>14;G=((S(y+r|0,-11585)|0)+8192|0)>>>14;p=((S(E+F|0,-11585)|0)+8192|0)>>>14;b[c>>1]=o+C;b[c+2>>1]=0-(i+e);b[c+4>>1]=(g+t|0)>>>14;b[c+6>>1]=0-((s+w|0)>>>14);b[c+8>>1]=(((x+k|0)*11585|0)+8192|0)>>>14;b[c+10>>1]=p;b[c+12>>1]=(((q+z|0)*11585|0)+8192|0)>>>14;b[c+14>>1]=G;b[c+16>>1]=(((y-r|0)*11585|0)+8192|0)>>>14;b[c+18>>1]=(((z-q|0)*11585|0)+8192|0)>>>14;b[c+20>>1]=(((E-F|0)*11585|0)+8192|0)>>>14;b[c+22>>1]=(((k-x|0)*11585|0)+8192|0)>>>14;b[c+24>>1]=(B+a|0)>>>14;b[c+26>>1]=0-((D+m|0)>>>14);b[c+28>>1]=u+H;b[c+30>>1]=0-(A+v);return}}function ge(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;g=l;l=l+576|0;h=g+64|0;i=g+32|0;j=g;Jj(h|0,0,512)|0;de(c,h);de(c+32|0,h+32|0);de(c+64|0,h+64|0);de(c+96|0,h+96|0);c=i+2|0;k=i+4|0;m=i+6|0;n=i+8|0;o=i+10|0;p=i+12|0;q=i+14|0;r=i+16|0;s=i+18|0;t=i+20|0;u=i+22|0;v=i+24|0;w=i+26|0;x=i+28|0;y=i+30|0;z=0;do{b[i>>1]=b[h+(z<<1)>>1]|0;b[c>>1]=b[h+(z+16<<1)>>1]|0;b[k>>1]=b[h+(z+32<<1)>>1]|0;b[m>>1]=b[h+(z+48<<1)>>1]|0;b[n>>1]=b[h+(z+64<<1)>>1]|0;b[o>>1]=b[h+(z+80<<1)>>1]|0;b[p>>1]=b[h+(z+96<<1)>>1]|0;b[q>>1]=b[h+(z+112<<1)>>1]|0;b[r>>1]=b[h+(z+128<<1)>>1]|0;b[s>>1]=b[h+(z+144<<1)>>1]|0;b[t>>1]=b[h+(z+160<<1)>>1]|0;b[u>>1]=b[h+(z+176<<1)>>1]|0;b[v>>1]=b[h+(z+192<<1)>>1]|0;b[w>>1]=b[h+(z+208<<1)>>1]|0;b[x>>1]=b[h+(z+224<<1)>>1]|0;b[y>>1]=b[h+(z+240<<1)>>1]|0;de(i,j);A=0;do{B=e+((S(A,f)|0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Hb=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0;i=l;l=l+3440|0;j=i+240|0;k=i+232|0;m=i+224|0;n=i+216|0;o=i+208|0;p=i+200|0;q=i+192|0;r=i+184|0;s=i+176|0;t=i+168|0;u=i+160|0;v=i+152|0;w=i+144|0;x=i+136|0;y=i+128|0;z=i+120|0;A=i+112|0;B=i+104|0;C=i+96|0;D=i+88|0;E=i+80|0;F=i+72|0;G=i+64|0;H=i+56|0;I=i+48|0;J=i+40|0;K=i+32|0;L=i+24|0;M=i+16|0;N=i+280|0;O=i+264|0;P=i+244|0;Q=i+3352|0;R=e+432|0;c[P+8>>2]=0;c[P+16>>2]=5;c[P+12>>2]=R;S=e+18712|0;T=c[S>>2]|0;U=g;W=U-f|0;X=(W|0)<80?W:80;if(!T){Y=f;Z=g}else{Ib[T&63](c[e+18716>>2]|0,f,Q,X);Y=Q;Z=Q+X|0}c[P>>2]=Y;c[P+4>>2]=Z;Z=e+17836|0;Y=c[Z>>2]|0;X=e+996|0;Q=e+992|0;c[Q>>2]=c[X>>2];T=e+1012|0;W=e+1013|0;a[W>>0]=a[T>>0]|0;if((kc(P,2)|0)!=2)Ub(R,5,29939,i);_=jc(P)|0;$=(jc(P)|0)<<1|_;if(($|0)>2)aa=(jc(P)|0)+$|0;else aa=$;$=e+17780|0;c[$>>2]=aa;if(aa>>>0>1)Ub(R,5,29960,i+8|0);aa=jc(P)|0;c[e+1008>>2]=aa;do if(aa){_=c[e+732+((kc(P,3)|0)<<2)>>2]|0;xe(Y);if(!((_|0)>=0?(c[Y+40+(_*160|0)>>2]|0)>=1:0)){ye(Y);c[M>>2]=_;Ub(R,5,29990,M)}ba=e+988|0;ca=c[ba>>2]|0;if((ca|0)>-1?(da=Y+40+(ca*160|0)|0,ca=c[da>>2]|0,(ca|0)>0):0)c[da>>2]=ca+-1;c[ba>>2]=_;ca=Y+40+(_*160|0)|0;c[ca>>2]=(c[ca>>2]|0)+1;ye(Y);c[e+17860>>2]=0;c[e+4372>>2]=0;c[e+1e3>>2]=1;if(!(c[e+17864>>2]|0)){ea=ba;fa=0}else{c[e+764>>2]=c[e+732>>2];c[e+768>>2]=c[e+736>>2];c[e+772>>2]=c[e+740>>2];c[e+776>>2]=c[e+744>>2];c[e+780>>2]=c[e+748>>2];c[e+784>>2]=c[e+752>>2];c[e+788>>2]=c[e+756>>2];c[e+792>>2]=c[e+760>>2];ea=ba;fa=0}}else{c[X>>2]=jc(P)|0;ba=e+1e3|0;c[ba>>2]=jc(P)|0;ca=jc(P)|0;_=e+17792|0;c[_>>2]=ca;do if(!(c[X>>2]|0)){if(!(((kc(P,8)|0)==73?(kc(P,8)|0)==131:0)?(kc(P,8)|0)==66:0))Ub(R,5,30033,L);Jg(R,P);c[e+17860>>2]=255;c[e+796>>2]=-1;c[e+800>>2]=0;c[e+860>>2]=-1;c[e+864>>2]=0;c[e+924>>2]=-1;c[e+928>>2]=0;Kg(R,P);da=e+18728|0;if(!(c[da>>2]|0))ga=0;else{ha=e+732|0;c[ha>>2]=-1;c[ha+4>>2]=-1;c[ha+8>>2]=-1;c[ha+12>>2]=-1;c[ha+16>>2]=-1;c[ha+20>>2]=-1;c[ha+24>>2]=-1;c[ha+28>>2]=-1;c[da>>2]=0;ga=0}}else{if(!(c[ba>>2]|0)){da=jc(P)|0;ia=c[_>>2]|0;ja=da}else{ia=ca;ja=0}da=ja&255;a[T>>0]=da;if(!ia){ha=kc(P,2)|0;ka=a[T>>0]|0;la=ha}else{ka=da;la=0}c[e+1020>>2]=la;if(ka<<24>>24){if(!(((kc(P,8)|0)==73?(kc(P,8)|0)==131:0)?(kc(P,8)|0)==66:0))Ub(R,5,30033,K);if(!(c[$>>2]|0)){c[e+680>>2]=1;c[e+684>>2]=0;c[e+712>>2]=1;c[e+716>>2]=1;c[e+17784>>2]=8}else Jg(R,P);c[e+17860>>2]=kc(P,8)|0;Kg(R,P);da=e+18728|0;if(!(c[da>>2]|0)){ga=0;break}ha=e+732|0;c[ha>>2]=-1;c[ha+4>>2]=-1;c[ha+8>>2]=-1;c[ha+12>>2]=-1;c[ha+16>>2]=-1;c[ha+20>>2]=-1;c[ha+24>>2]=-1;c[ha+28>>2]=-1;c[da>>2]=0;ga=0;break}da=e+18728|0;if((c[da>>2]|0)==1)ga=1;else{c[e+17860>>2]=kc(P,8)|0;ha=c[e+732+((kc(P,3)|0)<<2)>>2]|0;ma=e+796|0;c[ma>>2]=ha;na=e+800|0;c[na>>2]=Y+40+(ha*160|0)+28;c[e+4360>>2]=jc(P)|0;ha=c[e+732+((kc(P,3)|0)<<2)>>2]|0;oa=e+860|0;c[oa>>2]=ha;pa=e+864|0;c[pa>>2]=Y+40+(ha*160|0)+28;c[e+4364>>2]=jc(P)|0;ha=c[e+732+((kc(P,3)|0)<<2)>>2]|0;qa=e+924|0;c[qa>>2]=ha;ra=e+928|0;c[ra>>2]=Y+40+(ha*160|0)+28;c[e+4368>>2]=jc(P)|0;ha=c[Z>>2]|0;if(jc(P)|0)if((c[ma>>2]|0)==-1){Ub(R,7,30057,J);sa=44}else{ta=0;sa=42}else sa=44;do if((sa|0)==44){if(jc(P)|0){if((c[oa>>2]|0)!=-1){ta=1;sa=42;break}Ub(R,7,30057,C)}if(jc(P)|0){if((c[qa>>2]|0)!=-1){ta=2;sa=42;break}Ub(R,7,30057,B)}ua=(kc(P,16)|0)+1|0;va=(kc(P,16)|0)+1|0;wa=ua}while(0);if((sa|0)==42){ua=c[e+796+(ta<<6)+4>>2]|0;va=c[ua+12>>2]|0;wa=c[ua+8>>2]|0}if((wa|0)<1|(va|0)<1)Ub(R,7,30085,I);ua=wa<<1;xa=va<<1;ya=c[ma>>2]|0;if((ya|0)==-1)za=0;else{Aa=c[na>>2]|0;Ba=c[Aa+8>>2]|0;Ca=c[Aa+12>>2]|0;za=(Ca<<4|0)>=(va|0)&(((Ba<<4|0)<(wa|0)|((ua|0)<(Ba|0)|(xa|0)<(Ca|0)))^1)}if((c[oa>>2]|0)==-1)Da=0;else{Ca=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c[e+17808>>2]|0,ha+40+(Ia*160|0)+16|0,c[ha+32>>2]|0,c[ha+28>>2]|0)|0){ye(ha);Ub(R,2,30185,F)}ye(ha);Ia=c[Ha>>2]|0;c[ha+40+(Ia*160|0)+112>>2]=c[Ca>>2];c[ha+40+(Ia*160|0)+116>>2]=c[xa>>2];c[ha+40+(Ia*160|0)+120>>2]=c[ya>>2];c[ha+40+(Ia*160|0)+124>>2]=c[e+680>>2];c[ha+40+(Ia*160|0)+128>>2]=c[e+684>>2];c[ha+40+(Ia*160|0)+132>>2]=c[ua>>2];c[ha+40+(Ia*160|0)+136>>2]=c[Ga>>2];c[e+1016>>2]=jc(P)|0;if(!(jc(P)|0))Ja=a[30217+(kc(P,2)|0)>>0]|0;else Ja=4;a[e+1212>>0]=Ja;Ga=c[na>>2]|0;kf(e+804|0,c[Ga+8>>2]|0,c[Ga+12>>2]|0,c[Ba>>2]|0,c[Aa>>2]|0);Ga=c[pa>>2]|0;kf(e+868|0,c[Ga+8>>2]|0,c[Ga+12>>2]|0,c[Ba>>2]|0,c[Aa>>2]|0);Ga=c[ra>>2]|0;kf(e+932|0,c[Ga+8>>2]|0,c[Ga+12>>2]|0,c[Ba>>2]|0,c[Aa>>2]|0);ga=c[da>>2]|0}}while(0);ca=e+988|0;ba=c[ca>>2]|0;Aa=c[Z>>2]|0;c[Aa+40+(ba*160|0)+124>>2]=c[e+680>>2];c[Aa+40+(ba*160|0)+128>>2]=c[e+684>>2];c[Aa+40+(ba*160|0)+132>>2]=c[e+696>>2];c[Aa+40+(ba*160|0)+136>>2]=c[e+700>>2];if(ga|0)Ub(R,7,30221,A);if(!(c[_>>2]|0)){c[e+4352>>2]=jc(P)|0;ba=jc(P)|0;c[e+17796>>2]=ba;if(!ba)Jj(e+4552|0,0,13224)|0}else{c[e+4352>>2]=0;c[e+17796>>2]=1}c[e+4548>>2]=kc(P,2)|0;xe(Y);ba=c[e+17860>>2]|0;if(ba){Aa=ba;ba=0;do{if(!(Aa&1)){Ba=c[e+732+(ba<<2)>>2]|0;c[e+764+(ba<<2)>>2]=Ba;Ka=Ba}else{c[e+764+(ba<<2)>>2]=c[ca>>2];Ba=Y+40+((c[ca>>2]|0)*160|0)|0;c[Ba>>2]=(c[Ba>>2]|0)+1;Ka=c[e+732+(ba<<2)>>2]|0}Ba=Y+40+(Ka*160|0)|0;if((Ka|0)>-1)c[Ba>>2]=(c[Ba>>2]|0)+1;ba=ba+1|0;Aa=Aa>>1}while((Aa|0)!=0);if((ba|0)<8){La=ba;sa=91}}else{La=0;sa=91}if((sa|0)==91)while(1){sa=0;Aa=c[e+732+(La<<2)>>2]|0;c[e+764+(La<<2)>>2]=Aa;Ba=Y+40+(Aa*160|0)|0;if((Aa|0)>-1)c[Ba>>2]=(c[Ba>>2]|0)+1;La=La+1|0;if((La|0)==8)break;else sa=91}ye(Y);c[e+18732>>2]=1;if(!(((c[X>>2]|0)!=0?(a[T>>0]|0)==0:0)?!(c[_>>2]|0):0))Le(R);c[e+4372>>2]=kc(P,6)|0;c[e+4380>>2]=kc(P,3)|0;ba=e+4389|0;a[ba>>0]=0;Ba=(jc(P)|0)&255;a[e+4388>>0]=Ba;if(Ba<<24>>24?(Ba=(jc(P)|0)&255,a[ba>>0]=Ba,Ba<<24>>24):0){if(jc(P)|0)a[e+4390>>0]=lc(P,6)|0;if(jc(P)|0)a[e+4391>>0]=lc(P,6)|0;if(jc(P)|0)a[e+4392>>0]=lc(P,6)|0;if(jc(P)|0)a[e+4393>>0]=lc(P,6)|0;if(jc(P)|0)a[e+4398>>0]=lc(P,6)|0;if(jc(P)|0)a[e+4399>>0]=lc(P,6)|0}Ba=e+1052|0;c[Ba>>2]=kc(P,8)|0;if(!(jc(P)|0))Ma=0;else Ma=lc(P,4)|0;ba=e+1056|0;c[ba>>2]=Ma;if(!(jc(P)|0))Na=0;else Na=lc(P,4)|0;Aa=e+1060|0;c[Aa>>2]=Na;if(!(jc(P)|0))Oa=0;else Oa=lc(P,4)|0;Ga=e+1064|0;c[Ga>>2]=Oa;Ia=e+17784|0;c[e+17788>>2]=c[Ia>>2];if((c[Ba>>2]|0)==0?(c[ba>>2]|0)==0:0)Pa=(c[Aa>>2]|Oa|0)==0;else Pa=0;c[e+420>>2]=Pa&1;ua=e+4412|0;ya=e+4413|0;a[ya>>0]=0;xa=e+4414|0;a[xa>>0]=0;Ca=(jc(P)|0)&255;a[ua>>0]=Ca;do if(!(Ca<<24>>24))sa=156;else{Ha=(jc(P)|0)&255;a[ya>>0]=Ha;do if(Ha<<24>>24){if(!(jc(P)|0))Qa=-1;else Qa=(kc(P,8)|0)&255;a[e+4417>>0]=Qa;if(!(jc(P)|0))Ra=-1;else Ra=(kc(P,8)|0)&255;a[e+4418>>0]=Ra;if(!(jc(P)|0))Sa=-1;else Sa=(kc(P,8)|0)&255;a[e+4419>>0]=Sa;if(!(jc(P)|0))Ta=-1;else Ta=(kc(P,8)|0)&255;a[e+4420>>0]=Ta;if(!(jc(P)|0))Ua=-1;else Ua=(kc(P,8)|0)&255;a[e+4421>>0]=Ua;if(!(jc(P)|0))Va=-1;else Va=(kc(P,8)|0)&255;a[e+4422>>0]=Va;if(!(jc(P)|0))Wa=-1;else Wa=(kc(P,8)|0)&255;a[e+4423>>0]=Wa;Xa=(jc(P)|0)&255;a[e+4416>>0]=Xa;if(!(Xa<<24>>24)){Xa=e+4424|0;a[Xa>>0]=255;a[Xa+1>>0]=255;a[Xa+2>>0]=255;break}if(!(jc(P)|0))Ya=-1;else Ya=(kc(P,8)|0)&255;a[e+4424>>0]=Ya;if(!(jc(P)|0))Za=-1;else Za=(kc(P,8)|0)&255;a[e+4425>>0]=Za;if(!(jc(P)|0))_a=-1;else _a=(kc(P,8)|0)&255;a[e+4426>>0]=_a}while(0);Ha=(jc(P)|0)&255;a[xa>>0]=Ha;if(Ha<<24>>24){a[e+4415>>0]=jc(P)|0;of(ua);Ha=0;do{da=0;do{do if(!(jc(P)|0))$a=0;else{pf(ua,Ha,da);ra=qf(da)|0;pa=((V(ra|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+(hb*108|0)+1|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+2|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+3|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+4|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+5|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+6|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+7|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+8|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+18|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+19|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+20|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+21|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+22|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+23|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+24|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+25|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+26|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+27|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+28|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+29|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+30|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+31|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+32|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+33|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+34|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+35|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+36|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+37|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+38|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+39|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+40|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+41|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+42|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+43|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+44|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+45|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+46|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+47|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+48|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+49|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+50|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+51|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+52|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+53|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+54|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+55|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+56|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+57|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+58|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+59|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+60|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+61|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+62|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+63|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+64|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+65|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+66|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+67|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+68|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+69|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+70|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+71|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+72|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+73|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+74|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+75|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+76|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+77|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+78|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+79|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+80|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+81|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+82|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+83|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+84|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+85|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+86|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+87|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+88|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+89|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+90|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+91|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+92|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+93|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+94|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+95|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+96|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+97|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+98|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+99|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+100|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+101|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+102|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+103|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+104|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+105|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+106|0);kh(N,db+174+(Ta*432|0)+(lb*216|0)+(hb*108|0)+107|0);hb=hb+1|0}while((hb|0)!=2);lb=lb+1|0}while((lb|0)!=2)}mb=mb+1<<24>>24}while((mb&255)<=(nb&255));kh(N,db+1967|0);kh(N,db+1968|0);kh(N,db+1969|0);if(c[X>>2]|0?(a[T>>0]|0)==0:0){kh(N,db+1910|0);kh(N,db+1911|0);kh(N,db+1912|0);kh(N,db+1913|0);kh(N,db+1914|0);kh(N,db+1915|0);kh(N,db+1916|0);kh(N,db+1917|0);kh(N,db+1918|0);kh(N,db+1919|0);kh(N,db+1920|0);kh(N,db+1921|0);kh(N,db+1922|0);kh(N,db+1923|0);kh(N,db+1924|0);kh(N,db+1925|0);kh(N,db+1926|0);kh(N,db+1927|0);kh(N,db+1928|0);kh(N,db+1929|0);kh(N,db+1930|0);if((a[e+1212>>0]|0)==4){kh(N,db+1902|0);kh(N,db+1903|0);kh(N,db+1904|0);kh(N,db+1905|0);kh(N,db+1906|0);kh(N,db+1907|0);kh(N,db+1908|0);kh(N,db+1909|0)}kh(N,db+1931|0);kh(N,db+1932|0);kh(N,db+1933|0);kh(N,db+1934|0);nb=e+4360|0;mb=1;while(1){if((mb|0)>=3){sa=212;break}mb=mb+1|0;if((c[e+4356+(mb<<2)>>2]|0)!=(c[nb>>2]|0)){sa=206;break}}do if((sa|0)==206){mb=c[v>>2]|0;pb=((mb<<7)+128|0)>>>8;ob=c[f>>2]|0;if((ob|0)<0){gc(N);qb=c[v>>2]|0;rb=c[f>>2]|0}else{qb=mb;rb=ob}ob=c[N>>2]|0;mb=pb<<24;lb=ob>>>0<mb>>>0;Ta=lb?pb:qb-pb|0;pb=d[1280+Ta>>0]|0;ca=Ta<<pb;Ta=ob-(lb?0:mb)<<pb;mb=rb-pb|0;c[N>>2]=Ta;c[f>>2]=mb;c[v>>2]=ca;if(!lb){lb=((ca<<7)+128|0)>>>8;if((mb|0)<0){gc(N);sb=c[N>>2]|0;tb=c[v>>2]|0;ub=c[f>>2]|0}else{sb=Ta;tb=ca;ub=mb}mb=lb<<24;ca=sb>>>0<mb>>>0;Ta=ca?lb:tb-lb|0;lb=d[1280+Ta>>0]|0;c[N>>2]=sb-(ca?0:mb)<<lb;c[f>>2]=ub-lb;c[v>>2]=Ta<<lb;lb=e+4536|0;c[lb>>2]=ca?1:2;Ta=c[nb>>2]|0;do if((Ta|0)!=(c[e+4364>>2]|0)){mb=e+4532|0;if((Ta|0)==(c[e+4368>>2]|0)){a[mb>>0]=2;vb=1;wb=3;break}else{a[mb>>0]=1;vb=2;wb=3;break}}else{a[e+4532>>0]=3;vb=1;wb=2}while(0);a[e+4533>>0]=vb;a[e+4534>>0]=wb;Ta=c[cb>>2]|0;if(ca){xb=Ta;sa=220;break}kh(N,Ta+1935|0);kh(N,Ta+1936|0);kh(N,Ta+1937|0);kh(N,Ta+1938|0);kh(N,Ta+1939|0);if((c[lb>>2]|0)==1){xb=Ta;sa=220}else{yb=Ta;Ab=lb;sa=219}}else sa=212}while(0);if((sa|0)==212){wb=e+4536|0;c[wb>>2]=0;yb=c[cb>>2]|0;Ab=wb;sa=219}if((sa|0)==219){kh(N,yb+1940|0);kh(N,yb+1941|0);kh(N,yb+1942|0);kh(N,yb+1943|0);kh(N,yb+1944|0);kh(N,yb+1945|0);kh(N,yb+1946|0);kh(N,yb+1947|0);kh(N,yb+1948|0);kh(N,yb+1949|0);if(!(c[Ab>>2]|0))Cb=0;else{xb=yb;sa=220}}if((sa|0)==220){kh(N,xb+1950|0);kh(N,xb+1951|0);kh(N,xb+1952|0);kh(N,xb+1953|0);kh(N,xb+1954|0);Cb=0}do{kh(N,db+(Cb*9|0)|0);kh(N,db+(Cb*9|0)+1|0);kh(N,db+(Cb*9|0)+2|0);kh(N,db+(Cb*9|0)+3|0);kh(N,db+(Cb*9|0)+4|0);kh(N,db+(Cb*9|0)+5|0);kh(N,db+(Cb*9|0)+6|0);kh(N,db+(Cb*9|0)+7|0);kh(N,db+(Cb*9|0)+8|0);Cb=Cb+1|0}while((Cb|0)!=4);Db=0;do{kh(N,db+126+(Db*3|0)|0);kh(N,db+126+(Db*3|0)+1|0);kh(N,db+126+(Db*3|0)+2|0);Db=Db+1|0}while((Db|0)!=16);Db=c[e+1016>>2]|0;Mg(db+1970|0,3,N);Mg(db+1973|0,1,N);Mg(db+1974|0,10,N);Mg(db+1984|0,1,N);Mg(db+1985|0,10,N);Mg(db+2006|0,1,N);Mg(db+2007|0,10,N);Mg(db+2017|0,1,N);Mg(db+2018|0,10,N);Mg(db+1995|0,3,N);Mg(db+1998|0,3,N);Mg(db+2001|0,3,N);Mg(db+2028|0,3,N);Mg(db+2031|0,3,N);Mg(db+2034|0,3,N);if(Db|0){Mg(db+2004|0,1,N);Mg(db+2005|0,1,N);Mg(db+2037|0,1,N);Mg(db+2038|0,1,N)}}db=((c[f>>2]|0)+-33|0)>>>0<1073741791;c[Ya+40+(Za*160|0)+140>>2]=db&1;if(db)Ub(R,7,30439,u);u=e+4372|0;db=c[u>>2]|0;if(db|0?(c[e+17812>>2]|0)==0:0)yf(R,db);db=e+17864|0;if((c[db>>2]|0)!=0?(c[e+17796>>2]|0)!=0:0){Za=c[e+17872>>2]|0;Ya=c[Za+12>>2]|0;if(!(c[e+4352>>2]|0))Eb=0;else{Qj((c[Q>>2]|0)+((c[W>>2]|0)*2044|0)|0,c[cb>>2]|0,2044)|0;Eb=1}Vg(Za);f=c[e+17868>>2]|0;c[f+152>>2]=-1;c[f+156>>2]=-1;c[Ya+116>>2]=1;Xg(Za);Wg(Za);Fb=Eb}else Fb=0;Eb=e+17904|0;Za=c[Eb>>2]|0;Ya=bb<<$a;if((Za|0)!=0?(Ya|0)==(c[e+18680>>2]|0):0)Gb=e+18720|0;else{$a=e+18720|0;bb=c[$a>>2]|0;Yb(Za);Za=Vb(32,(((bb|0)>1?bb:0)+Ya|0)*16016|0)|0;c[Eb>>2]=Za;if(!Za)Ub(R,2,30486,t);c[e+18680>>2]=Ya;Gb=$a}$a=(_a|0)>1&((z|0)==0&(c[Gb>>2]|0)>1);z=$+fa|0;fa=we()|0;$=e+1040|0;_a=(c[$>>2]|0)+7&-8;Ya=c[ab>>2]|0;ab=1<<Ya;t=c[y>>2]|0;y=1<<t;do if($a){Za=c[Gb>>2]|0;bb=(Za|0)<(ab|0);f=bb?Za:ab;Db=e+18676|0;do if(!(c[Db>>2]|0)){Cb=Wb(Za*24|0)|0;xb=e+17900|0;c[xb>>2]=Cb;if(!Cb)Ub(R,2,30527,s);if((Za|0)<=0)break;Cb=Za+-1|0;yb=fa+4|0;Ab=0;do{wb=(c[xb>>2]|0)+(Ab*24|0)|0;c[Db>>2]=(c[Db>>2]|0)+1;zb[c[fa>>2]&31](wb);do if((Ab|0)<(Cb|0)){if(Bb[c[yb>>2]&7](wb)|0)break;Ub(R,1,30564,r)}while(0);Ab=Ab+1|0}while((Ab|0)!=(Za|0))}while(0);Za=(f|0)>0;if(Za){lb=e+17900|0;ca=e+18680|0;Ab=fa+8|0;yb=e+17796|0;Cb=0;do{xb=c[lb>>2]|0;wb=c[Eb>>2]|0;vb=(c[ca>>2]|0)+Cb|0;Bb[c[Ab>>2]&7](xb+(Cb*24|0)|0)|0;Qj(wb+(vb*16016|0)+13280|0,e|0,432)|0;c[wb+(vb*16016|0)+13548>>2]=c[yb>>2]|0?0:wb+(vb*16016|0)+48|0;c[xb+(Cb*24|0)+8>>2]=24;c[xb+(Cb*24|0)+12>>2]=wb+(vb*16016|0);c[xb+(Cb*24|0)+16>>2]=e;Cb=Cb+1|0}while((Cb|0)<(f|0))}Jj(c[e+17844>>2]|0,0,_a*6|0)|0;Jj(c[e+17840>>2]|0,0,_a|0)|0;If(R);Cb=e+17908|0;Og(e,z,g,ab,y,Cb);fi(Cb,ab,12,25);if(bb){if((ab|0)>2){yb=ab+-2|0;Ab=0;do{ca=e+17908+(Ab*12|0)|0;c[N>>2]=c[ca>>2];c[N+4>>2]=c[ca+4>>2];c[N+8>>2]=c[ca+8>>2];lb=e+17908+(yb*12|0)|0;c[ca>>2]=c[lb>>2];c[ca+4>>2]=c[lb+4>>2];c[ca+8>>2]=c[lb+8>>2];c[lb>>2]=c[N>>2];c[lb+4>>2]=c[N+4>>2];c[lb+8>>2]=c[N+8>>2];Ab=Ab+2|0;yb=yb+-2|0}while((Ab|0)<(yb|0))}}else{c[N>>2]=c[Cb>>2];c[N+4>>2]=c[Cb+4>>2];c[N+8>>2]=c[Cb+8>>2];yb=ab+-1|0;Wj(Cb|0,e+17920|0,yb*12|0)|0;Ab=e+17908+(yb*12|0)|0;c[Ab>>2]=c[N>>2];c[Ab+4>>2]=c[N+4>>2];c[Ab+8>>2]=c[N+8>>2]}Ab=e+17796|0;yb=e+17900|0;if(Za&(c[Ab>>2]|0)==0){bb=0;do{Jj((c[(c[yb>>2]|0)+(bb*24|0)+12>>2]|0)+48|0,0,13224)|0;bb=bb+1|0}while((bb|0)<(f|0))}bb=(ab|0)/(f|0)|0;Cb=(ab|0)%(f|0)|0;if(Za){lb=f+-1|0;ca=fa+16|0;xb=fa+12|0;vb=0;wb=0;do{nb=c[yb>>2]|0;v=nb+(wb*24|0)|0;ub=c[nb+(wb*24|0)+12>>2]|0;c[ub+4>>2]=vb;vb=vb+bb+((wb+Cb|0)/(f|0)|0)|0;c[ub+8>>2]=vb+-1;c[ub>>2]=g;c[nb+(wb*24|0)+20>>2]=0;if((wb|0)==(lb|0))zb[c[ca>>2]&31](v);else zb[c[xb>>2]&31](v);wb=wb+1|0}while((wb|0)<(f|0));Hb=f}else Hb=0;wb=fa+8|0;xb=Hb;while(1){if((xb|0)<=0){Jb=0;break}ca=c[yb>>2]|0;Kb=xb+-1|0;lb=c[ca+(Kb*24|0)+12>>2]|0;vb=(Bb[c[wb>>2]&7](ca+(Kb*24|0)|0)|0)==0&1;c[P>>2]=vb|c[P>>2];Lb=c[lb>>2]|0;if(!Lb)xb=Kb;else{sa=270;break}}do if((sa|0)==270){if((xb|0)>1)Mb=Kb;else{Jb=Lb;break}do{lb=Mb;Mb=Mb+-1|0;vb=(Bb[c[wb>>2]&7]((c[yb>>2]|0)+(Mb*24|0)|0)|0)==0&1;c[P>>2]=vb|c[P>>2]}while((lb|0)>1);Jb=Lb}while(0);if(Za&(c[Ab>>2]|0)==0){wb=e+4552|0;xb=0;do{Of(wb,(c[(c[yb>>2]|0)+(xb*24|0)+12>>2]|0)+48|0,1);xb=xb+1|0}while((xb|0)<(f|0))}c[h>>2]=Jb;if(c[P>>2]|0){Ub(R,7,30600,q);break}if(c[e+17812>>2]|0)break;Kf(Wa,R,e,c[u>>2]|0,0,0,c[yb>>2]|0,c[Db>>2]|0,e+18684|0)}else{do if(c[u>>2]|0){f=e+17812|0;do if(!(c[f>>2]|0)){xb=e+17888|0;if(c[xb>>2]|0)break;wb=Vb(32,284)|0;c[xb>>2]=wb;if(!wb)Ub(R,2,30640,p);c[e+17884>>2]=26;if((c[Gb>>2]|0)<=1)break;if(Bb[c[fa+4>>2]&7](e+17876|0)|0)break;Ub(R,1,30680,o)}while(0);if(!(c[u>>2]|0))break;if(c[f>>2]|0)break;wb=c[e+17888>>2]|0;Bb[c[fa+8>>2]&7](e+17876|0)|0;Hf(wb,(c[Z>>2]|0)+40+((c[ea>>2]|0)*160|0)+28|0,R,e)}while(0);Db=e+17844|0;Jj(c[Db>>2]|0,0,_a*6|0)|0;yb=e+17840|0;Jj(c[yb>>2]|0,0,_a|0)|0;If(R);Og(e,z,g,ab,y,N);if((t|0)!=31){wb=(Ya|0)==31;xb=e+17796|0;Ab=e+4552|0;Za=e+1100|0;lb=e+1068|0;vb=e+1044|0;if(!wb){ca=0;do{Cb=ca<<Ya;bb=0;do{v=(c[Eb>>2]|0)+(Cb*16016|0)+(bb*16016|0)|0;nb=v+13280|0;Qj(nb|0,e|0,432)|0;c[nb+424>>2]=0;c[nb+268>>2]=c[xb>>2]|0?0:Ab;ub=v+13712|0;Jj(ub|0,0,2048)|0;vf(nb+272|0,R,ca,bb);sb=c[N+(ca*768|0)+(bb*12|0)>>2]|0;tb=c[N+(ca*768|0)+(bb*12|0)+4>>2]|0;rb=c[S>>2]|0;qb=c[w>>2]|0;if(!((tb|0)!=0&(U-sb|0)>>>0>=tb>>>0))Ub(R,7,30715,n);if(fc(v+12|0,sb,tb,rb,qb)|0){c[m>>2]=1;Ub(R,2,30755,m)}qb=nb+332|0;c[nb>>2]=ub;c[nb+348>>2]=c[Db>>2];rb=nb+44|0;c[rb>>2]=c[lb>>2];c[rb+4>>2]=c[lb+4>>2];c[rb+8>>2]=c[lb+8>>2];c[rb+12>>2]=c[lb+12>>2];c[rb+16>>2]=c[lb+16>>2];c[rb+20>>2]=c[lb+20>>2];c[rb+24>>2]=c[lb+24>>2];c[rb+28>>2]=c[lb+28>>2];rb=c[Db>>2]|0;tb=(c[$>>2]<<1)+14&-16;c[qb>>2]=c[cb>>2];c[nb+88>>2]=ub;c[nb+352>>2]=rb+tb;tb=nb+132|0;c[tb>>2]=c[Za>>2];c[tb+4>>2]=c[Za+4>>2];c[tb+8>>2]=c[Za+8>>2];c[tb+12>>2]=c[Za+12>>2];c[tb+16>>2]=c[Za+16>>2];c[tb+20>>2]=c[Za+20>>2];c[tb+24>>2]=c[Za+24>>2];c[tb+28>>2]=c[Za+28>>2];tb=c[Db>>2]|0;rb=(c[$>>2]<<2)+28&-32;c[qb>>2]=c[cb>>2];c[nb+176>>2]=ub;c[nb+356>>2]=tb+rb;rb=nb+220|0;c[rb>>2]=c[Za>>2];c[rb+4>>2]=c[Za+4>>2];c[rb+8>>2]=c[Za+8>>2];c[rb+12>>2]=c[Za+12>>2];c[rb+16>>2]=c[Za+16>>2];c[rb+20>>2]=c[Za+20>>2];c[rb+24>>2]=c[Za+24>>2];c[rb+28>>2]=c[Za+28>>2];rb=c[cb>>2]|0;tb=c[yb>>2]|0;ub=c[vb>>2]|0;sb=rb;v=(c[X>>2]|0)==0;c[qb>>2]=rb;c[nb+408>>2]=tb;c[nb+288>>2]=ub;c[nb+428>>2]=R;do if(v)Nb=27372;else{if(a[T>>0]|0){Nb=27372;break}Nb=sb+126|0}while(0);c[nb+312>>2]=Nb;bb=bb+1|0}while((bb|0)<(ab|0));ca=ca+1|0}while((ca|0)<(y|0))}ca=O+4|0;vb=e+17868|0;yb=e+17812|0;Za=e+17876|0;Db=e+17888|0;lb=e+1032|0;Ab=fa+8|0;xb=fa+12|0;bb=fa+16|0;Cb=e+18724|0;f=ab+-1|0;sb=O+8|0;v=O+12|0;ub=0;do{tf(O,R,ub);tb=c[O>>2]|0;b:do if((tb|0)<(c[ca>>2]|0)){rb=ub<<Ya;if(wb){qb=tb;while(1){do if(c[u>>2]|0){if(c[yb>>2]|0){sa=329;break}Ta=c[Db>>2]|0;if((qb|0)<8)break;if((qb+8|0)>=(c[lb>>2]|0))break;Bb[c[Ab>>2]&7](Za)|0;c[Ta+272>>2]=qb+-8;c[Ta+276>>2]=qb;if((c[Gb>>2]|0)>1){zb[c[xb>>2]&31](Za);sa=329;break}else{zb[c[bb>>2]&31](Za);sa=329;break}}else sa=329;while(0);do if((sa|0)==329){sa=0;if(!(c[db>>2]|0))break;Zg(c[vb>>2]|0,qb<<3)}while(0);qb=qb+8|0;if((qb|0)>=(c[ca>>2]|0))break b}}else Ob=tb;do{qb=0;do{nb=(c[Cb>>2]|0)==0?qb:f-qb|0;Ta=(c[Eb>>2]|0)+(rb*16016|0)+(nb*16016|0)|0;uf(O,R,nb);nb=Ta+13280|0;mb=nb+360|0;pb=mb+48|0;do{c[mb>>2]=0;mb=mb+4|0}while((mb|0)<(pb|0));mb=nb+412|0;c[mb>>2]=0;c[mb+4>>2]=0;mb=c[sb>>2]|0;if((mb|0)<(c[v>>2]|0)){pb=mb;do{Qg(Ta,e,Ob,pb,12,4);pb=pb+8|0}while((pb|0)<(c[v>>2]|0))}pb=c[P>>2]|c[nb+424>>2];c[P>>2]=pb;if(pb|0)Ub(R,7,30790,k);qb=qb+1|0}while((ab|0)>(qb|0));do if(c[u>>2]|0){if(c[yb>>2]|0){sa=313;break}qb=c[Db>>2]|0;if((Ob|0)<8)break;if((Ob+8|0)>=(c[lb>>2]|0))break;Bb[c[Ab>>2]&7](Za)|0;c[qb+272>>2]=Ob+-8;c[qb+276>>2]=Ob;if((c[Gb>>2]|0)>1){zb[c[xb>>2]&31](Za);sa=313;break}else{zb[c[bb>>2]&31](Za);sa=313;break}}else sa=313;while(0);do if((sa|0)==313){sa=0;if(!(c[db>>2]|0))break;Zg(c[vb>>2]|0,Ob<<3)}while(0);Ob=Ob+8|0}while((Ob|0)<(c[ca>>2]|0))}while(0);ub=ub+1|0}while((ub|0)<(y|0))}do if(c[u>>2]|0){if(c[e+17812>>2]|0)break;ub=e+17876|0;ca=c[e+17888>>2]|0;Bb[c[fa+8>>2]&7](ub)|0;vb=ca+276|0;c[ca+272>>2]=c[vb>>2];c[vb>>2]=c[e+1032>>2];zb[c[fa+16>>2]&31](ub)}while(0);ub=(c[Eb>>2]|0)+((y<<Ya)*16016|0)+-16016|0;if(c[db>>2]|0)Zg(c[e+17868>>2]|0,2147483647);c[h>>2]=hc(ub+12|0)|0}while(0);do if(!(c[P>>2]|0)){if(!(c[x>>2]|0)){if(c[e+17796>>2]|0)break;Je(R);if(!(c[X>>2]|0))break;if(a[T>>0]|0)break;Ke(R);Ne(R,c[e+1016>>2]|0)}}else Ub(R,7,30600,j);while(0);if((Fb|0)!=0|(c[e+4352>>2]|0)==0){l=i;return}Qj((c[Q>>2]|0)+((c[W>>2]|0)*2044|0)|0,c[cb>>2]|0,2044)|0;l=i;return}function Ig(a){a=a|0;var b=0;b=l;l=l+16|0;Ub(a,7,31092,b);l=b;return}function Jg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=l;l=l+32|0;e=d+16|0;f=d+8|0;g=d;h=a+17348|0;if((c[h>>2]|0)>>>0>1){i=(jc(b)|0)!=0;j=i?12:10}else j=8;c[a+17352>>2]=j;j=kc(b,3)|0;c[a+248>>2]=j;if((j|0)==7){c[a+252>>2]=1;switch(c[h>>2]|0){case 3:case 1:break;default:{Ub(a,5,31048,d+24|0);l=d;return}}c[a+280>>2]=0;c[a+284>>2]=0;if(!(jc(b)|0)){l=d;return}Ub(a,5,31031,e);l=d;return}c[a+252>>2]=jc(b)|0;switch(c[h>>2]|0){case 3:case 1:break;default:{c[a+280>>2]=1;c[a+284>>2]=1;l=d;return}}h=a+280|0;c[h>>2]=jc(b)|0;e=jc(b)|0;c[a+284>>2]=e;if((e|0)==1&(c[h>>2]|0)==1)Ub(a,5,30987,g);if(!(jc(b)|0)){l=d;return}Ub(a,5,31031,f);l=d;return}function Kg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0;d=l;l=l+16|0;e=a+17404|0;f=c[e>>2]|0;g=(kc(b,16)|0)+1|0;Lg(a,g,(kc(b,16)|0)+1|0);g=a+256|0;h=a+264|0;c[h>>2]=c[g>>2];i=a+260|0;j=a+268|0;c[j>>2]=c[i>>2];if(jc(b)|0){c[h>>2]=(kc(b,16)|0)+1;c[j>>2]=(kc(b,16)|0)+1}xe(f);b=a+556|0;k=c[b>>2]|0;m=a+280|0;n=a+284|0;if(_b((c[e>>2]|0)+40+(k*160|0)+28|0,c[g>>2]|0,c[i>>2]|0,c[m>>2]|0,c[n>>2]|0,32,c[a+17376>>2]|0,f+40+(k*160|0)+16|0,c[f+32>>2]|0,c[f+28>>2]|0)|0){ye(f);Ub(a,2,30185,d)}ye(f);k=c[b>>2]|0;c[f+40+(k*160|0)+112>>2]=c[m>>2];c[f+40+(k*160|0)+116>>2]=c[n>>2];c[f+40+(k*160|0)+120>>2]=c[a+17352>>2];c[f+40+(k*160|0)+124>>2]=c[a+248>>2];c[f+40+(k*160|0)+128>>2]=c[a+252>>2];c[f+40+(k*160|0)+132>>2]=c[h>>2];c[f+40+(k*160|0)+136>>2]=c[j>>2];l=d;return}function Lg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=l;l=l+16|0;f=e+8|0;g=e;h=a+256|0;if(!((c[h>>2]|0)==(b|0)?(c[a+260>>2]|0)==(d|0):0)){if((b+7>>3|0)<=(c[a+608>>2]|0)?(d+7>>3|0)<=(c[a+600>>2]|0):0)ze(a,b,d);else i=5;if((i|0)==5?Be(a,b,d)|0:0)Ub(a,2,30914,g);De(a);c[h>>2]=b;c[a+260>>2]=d}d=a+296|0;b=c[d>>2]|0;h=c[b+4>>2]|0;g=a+600|0;if((h|0?(c[g>>2]|0)<=(c[b+8>>2]|0):0)?(c[a+608>>2]|0)<=(c[b+12>>2]|0):0){l=e;return}Yb(h);h=c[g>>2]|0;g=c[d>>2]|0;c[g+8>>2]=h;b=c[a+608>>2]|0;c[g+12>>2]=b;g=Xb(S(b,h)|0,12)|0;c[(c[d>>2]|0)+4>>2]=g;if(g|0){l=e;return}Ub(a,2,30949,f);l=e;return}function Mg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;if((e|0)<=0)return;g=f+4|0;h=f+8|0;i=0;do{j=(((c[g>>2]|0)*252|0)+4|0)>>>8;k=c[h>>2]|0;if((k|0)<0){gc(f);l=c[h>>2]|0}else l=k;k=c[f>>2]|0;m=j<<24;if(k>>>0<m>>>0){n=1;o=j;p=k}else{n=0;o=(c[g>>2]|0)-j|0;p=k-m|0}m=d[1280+o>>0]|0;k=o<<m;j=p<<m;q=l-m|0;c[f>>2]=j;c[h>>2]=q;c[g>>2]=k;if(!n){m=j;j=k;k=q;q=7;r=0;do{s=q;q=q+-1|0;t=((j<<7)+128|0)>>>8;if((k|0)<0){gc(f);u=c[h>>2]|0;v=c[f>>2]|0}else{u=k;v=m}w=t<<24;if(v>>>0<w>>>0){x=0;y=t;z=v}else{x=1;y=(c[g>>2]|0)-t|0;z=v-w|0}w=d[1280+y>>0]|0;j=y<<w;m=z<<w;k=u-w|0;c[f>>2]=m;c[h>>2]=k;c[g>>2]=j;r=x<<q|r}while((s|0)>1);a[b+i>>0]=r<<1|1}i=i+1|0}while((i|0)!=(e|0));return}function Ng(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,fa=0,ga=0,ha=0,ja=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0;e=l;l=l+32|0;f=e+8|0;g=e;h=4;i=Bj(40)|0;c[i>>2]=0;j=e+20|0;k=e+16|0;m=e+12|0;nb(c,j>>2,b+13552|0)|0;n=d+432|0;q=(1<<c[d+17800>>2])+-1|0;nb(c,k>>2,0)|0;nb(c,m>>2,c[b+4>>2]|0)|0;r=b+15760|0;s=b+15848|0;c[s>>2]=1;i=Lj(b+15852|0,1,i|0,h|0)|0;h=D;o=0;t=o;o=0;if((t|0)!=0&(p|0)!=0){u=Oj(c[t>>2]|0,i|0,h|0)|0;if(!u)ya(t|0,p|0);D=p}else u=-1;if((u|0)==1)v=D;else v=0;a:while(1){if(v|0){w=4;break}u=b+13704|0;c[u>>2]=0;t=b+13712|0;x=b+12|0;y=d+18712|0;z=d+18716|0;A=d+17844|0;B=d+1040|0;C=d+1100|0;E=d+4540|0;F=b+13612|0;G=b+13280|0;H=b+13628|0;I=b+13324|0;J=d+1068|0;K=b+13368|0;L=b+13632|0;M=b+13412|0;N=b+13456|0;O=b+13636|0;P=b+13500|0;Q=d+17840|0;R=d+1044|0;S=d+996|0;T=b+13688|0;U=b+13568|0;V=b+13708|0;W=b+13592|0;X=b+8|0;Y=b+13640|0;Z=b+13692|0;_=d+1012|0;while(1){$=mb(c,m>>2)|0;Jj(t|0,0,2048)|0;aa=mb(c,j>>2)|0;ba=d+17908+($*12|0)+8|0;o=0;la(53,aa|0,n|0,0,c[ba>>2]|0);aa=o;o=0;if((aa|0)!=0&(p|0)!=0){ca=Oj(c[aa>>2]|0,i|0,h|0)|0;if(!ca)ya(aa|0,p|0);D=p}else ca=-1;if((ca|0)==1){v=D;continue a}aa=c[d+17908+($*12|0)>>2]|0;da=c[d+17908+($*12|0)+4>>2]|0;$=c[y>>2]|0;fa=c[z>>2]|0;if(!(da|0?((c[b>>2]|0)-aa|0)>>>0>=da>>>0:0)){o=0;la(54,r|0,7,30715,g|0);ga=o;o=0;if((ga|0)!=0&(p|0)!=0){ha=Oj(c[ga>>2]|0,i|0,h|0)|0;if(!ha)ya(ga|0,p|0);D=p}else ha=-1;if((ha|0)==1){v=D;continue a}}o=0;ga=ka(2,x|0,aa|0,da|0,$|0,fa|0)|0;fa=o;o=0;if((fa|0)!=0&(p|0)!=0){ja=Oj(c[fa>>2]|0,i|0,h|0)|0;if(!ja)ya(fa|0,p|0);D=p}else ja=-1;if((ja|0)==1){v=D;continue a}if(ga|0){o=0;c[f>>2]=1;la(54,r|0,2,30755,f|0);ga=o;o=0;if((ga|0)!=0&(p|0)!=0){ma=Oj(c[ga>>2]|0,i|0,h|0)|0;if(!ma)ya(ga|0,p|0);D=p}else ma=-1;if((ma|0)==1){v=D;continue a}}c[G>>2]=t;c[H>>2]=c[A>>2];c[I>>2]=c[J>>2];c[I+4>>2]=c[J+4>>2];c[I+8>>2]=c[J+8>>2];c[I+12>>2]=c[J+12>>2];c[I+16>>2]=c[J+16>>2];c[I+20>>2]=c[J+20>>2];c[I+24>>2]=c[J+24>>2];c[I+28>>2]=c[J+28>>2];ga=c[A>>2]|0;fa=(c[B>>2]<<1)+14&-16;c[F>>2]=c[E>>2];c[K>>2]=t;c[L>>2]=ga+fa;c[M>>2]=c[C>>2];c[M+4>>2]=c[C+4>>2];c[M+8>>2]=c[C+8>>2];c[M+12>>2]=c[C+12>>2];c[M+16>>2]=c[C+16>>2];c[M+20>>2]=c[C+20>>2];c[M+24>>2]=c[C+24>>2];c[M+28>>2]=c[C+28>>2];fa=c[A>>2]|0;ga=(c[B>>2]<<2)+28&-32;c[F>>2]=c[E>>2];c[N>>2]=t;c[O>>2]=fa+ga;c[P>>2]=c[C>>2];c[P+4>>2]=c[C+4>>2];c[P+8>>2]=c[C+8>>2];c[P+12>>2]=c[C+12>>2];c[P+16>>2]=c[C+16>>2];c[P+20>>2]=c[C+20>>2];c[P+24>>2]=c[C+24>>2];c[P+28>>2]=c[C+28>>2];ga=c[E>>2]|0;fa=c[Q>>2]|0;$=c[R>>2]|0;da=ga;aa=(c[S>>2]|0)==0;c[F>>2]=ga;c[T>>2]=fa;c[U>>2]=$;c[V>>2]=n;if(!aa?(a[_>>0]|0)==0:0)na=da+126|0;else na=27372;c[W>>2]=na;c[V>>2]=r;da=c[(mb(c,j>>2)|0)>>2]|0;if((da|0)<(c[(mb(c,j>>2)|0)+4>>2]|0)){aa=da;while(1){da=Y;$=da+48|0;do{c[da>>2]=0;da=da+4|0}while((da|0)<($|0));da=Z;c[da>>2]=0;c[da+4>>2]=0;da=c[(mb(c,j>>2)|0)+8>>2]|0;if((da|0)<(c[(mb(c,j>>2)|0)+12>>2]|0)){$=da;while(1){o=0;ia(1,b|0,d|0,aa|0,$|0,12,4);da=o;o=0;if((da|0)!=0&(p|0)!=0){oa=Oj(c[da>>2]|0,i|0,h|0)|0;if(!oa)ya(da|0,p|0);D=p}else oa=-1;if((oa|0)==1){v=D;continue a}$=$+8|0;if(($|0)>=(c[(mb(c,j>>2)|0)+12>>2]|0))break}}aa=aa+8|0;if((aa|0)>=(c[(mb(c,j>>2)|0)+4>>2]|0))break}}if((c[ba>>2]|0)==(q|0)){o=0;aa=ea(6,x|0)|0;$=o;o=0;if(($|0)!=0&(p|0)!=0){pa=Oj(c[$>>2]|0,i|0,h|0)|0;if(!pa)ya($|0,p|0);D=p}else pa=-1;if((pa|0)==1){v=D;continue a}nb(c,k>>2,aa)|0}qa=(c[u>>2]|0)==0;if(!qa){w=27;break a}aa=mb(c,m>>2)|0;nb(c,m>>2,aa+1|0)|0;if((aa|0)>=(c[X>>2]|0)){w=27;break a}}}if((w|0)==4){c[s>>2]=0;c[b+13704>>2]=1;c[b>>2]=0;ra=0;Cj(i|0);l=e;return ra|0}else if((w|0)==27){c[b>>2]=mb(c,k>>2)|0;ra=qa&1;Cj(i|0);l=e;return ra|0}return 0}function Og(a,b,e,f,g,h){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;i=l;l=l+32|0;j=i+24|0;k=i+16|0;m=i+8|0;n=i;o=i+28|0;if((g|0)<=0){l=i;return}p=(f|0)>0;q=g+-1|0;r=f+-1|0;s=a+432|0;t=a+18712|0;u=a+18716|0;a=e;e=o+1|0;v=o+2|0;w=o+3|0;x=b;b=0;while(1){a:do if(p){if((b|0)==(q|0)){y=0;z=x}else{A=0;B=x;while(1){c[h+(b*768|0)+(A*12|0)+8>>2]=A;C=c[t>>2]|0;D=c[u>>2]|0;if((a-B|0)>>>0<=3)Ub(s,7,30715,k);if(!C){E=B;F=E;G=(d[E+1>>0]|0)<<16|(d[E>>0]|0)<<24|(d[E+2>>0]|0)<<8|(d[E+3>>0]|0)}else{E=B;Ib[C&63](D,E,o,4);F=E;G=(d[e>>0]|0)<<16|(d[o>>0]|0)<<24|(d[v>>0]|0)<<8|(d[w>>0]|0)}E=F+4|0;D=E;if(G>>>0>(a-D|0)>>>0)Ub(s,7,30876,j);c[h+(b*768|0)+(A*12|0)>>2]=D;c[h+(b*768|0)+(A*12|0)+4>>2]=G;D=E+G|0;A=A+1|0;if((A|0)==(f|0)){H=D;break a}else B=D}}while(1){B=h+(q*768|0)+(y*12|0)|0;c[h+(q*768|0)+(y*12|0)+8>>2]=y;A=c[t>>2]|0;D=c[u>>2]|0;E=a-z|0;if((y|0)!=(r|0)){if(E>>>0<=3)Ub(s,7,30715,n);if(!A){C=z;I=C;J=(d[C+1>>0]|0)<<16|(d[C>>0]|0)<<24|(d[C+2>>0]|0)<<8|(d[C+3>>0]|0)}else{C=z;Ib[A&63](D,C,o,4);I=C;J=(d[e>>0]|0)<<16|(d[o>>0]|0)<<24|(d[v>>0]|0)<<8|(d[w>>0]|0)}C=I+4|0;if(J>>>0>(a-C|0)>>>0){Ub(s,7,30876,m);K=C;L=J}else{K=C;L=J}}else{K=z;L=E}c[B>>2]=K;c[h+(q*768|0)+(y*12|0)+4>>2]=L;B=K+L|0;y=y+1|0;if((y|0)==(f|0)){H=B;break}else z=B}}else H=x;while(0);b=b+1|0;if((b|0)==(g|0))break;else x=H}l=i;return}function Pg(a,b){a=a|0;b=b|0;return (c[b+4>>2]|0)-(c[a+4>>2]|0)|0}function Qg(b,e,f,g,h,i){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;j=i+-1|0;k=1<<j;l=k>>1;m=l+f|0;n=c[e+1032>>2]|0;o=(m|0)<(n|0);p=l+g|0;q=c[e+1040>>2]|0;r=(p|0)<(q|0);if(!((n|0)>(f|0)&(q|0)>(g|0)))return;q=b+13688|0;n=(f&7)+(b+13692)|0;s=(a[(c[q>>2]|0)+g>>0]|0)>>>j&1|j<<2|(a[n>>0]|0)>>>j<<1&2;t=c[b+13592>>2]|0;u=c[b+13548>>2]|0;v=b+12|0;do if(!(o&r)){w=o^1;if(r&w){x=d[t+(s*3|0)+1>>0]|0;y=b+16|0;z=(256-x+(S(c[y>>2]|0,x)|0)|0)>>>8;x=b+20|0;A=c[x>>2]|0;if((A|0)<0){gc(v);B=c[x>>2]|0}else B=A;A=c[v>>2]|0;C=z<<24;if(A>>>0<C>>>0){D=1;E=z;F=A}else{D=3;E=(c[y>>2]|0)-z|0;F=A-C|0}C=d[1280+E>>0]|0;c[v>>2]=F<<C;c[x>>2]=B-C;c[y>>2]=E<<C;G=D;break}if(r|w)G=3;else{w=d[t+(s*3|0)+2>>0]|0;C=b+16|0;y=(256-w+(S(c[C>>2]|0,w)|0)|0)>>>8;w=b+20|0;x=c[w>>2]|0;if((x|0)<0){gc(v);H=c[w>>2]|0}else H=x;x=c[v>>2]|0;A=y<<24;if(x>>>0<A>>>0){I=2;J=y;K=x}else{I=3;J=(c[C>>2]|0)-y|0;K=x-A|0}A=d[1280+J>>0]|0;c[v>>2]=K<<A;c[w>>2]=H-A;c[C>>2]=J<<A;G=I}}else{A=b+16|0;C=b+20|0;w=c[A>>2]|0;x=c[C>>2]|0;y=0;do{z=y<<24>>24;L=d[(z>>1)+(t+(s*3|0))>>0]|0;M=(256-L+(S(L,w)|0)|0)>>>8;if((x|0)<0){gc(v);N=c[C>>2]|0}else N=x;L=c[v>>2]|0;O=M<<24;if(L>>>0<O>>>0){P=0;Q=M;R=L}else{P=1;Q=(c[A>>2]|0)-M|0;R=L-O|0}O=d[1280+Q>>0]|0;w=Q<<O;x=N-O|0;c[v>>2]=R<<O;c[C>>2]=x;c[A>>2]=w;y=a[27444+(P+z)>>0]|0}while(y<<24>>24>0);G=0-(y<<24>>24)|0}while(0);P=u+560+(s<<4)+(G<<2)|0;if(u|0)c[P>>2]=(c[P>>2]|0)+1;P=a[(h&255)+(29085+(G*13|0))>>0]|0;a:do if(!l){a[b+13544>>0]=1>>>(G>>>1&1);a[b+13545>>0]=1>>>(G&1);Rg(b,e,f,g,P,1,1)}else switch(G|0){case 0:{Rg(b,e,f,g,P,i,i);break a;break}case 1:{Rg(b,e,f,g,P,i,j);if(!o)break a;Rg(b,e,m,g,P,i,j);break a;break}case 2:{Rg(b,e,f,g,P,j,i);if(!r)break a;Rg(b,e,f,p,P,j,i);break a;break}case 3:{Qg(b,e,f,g,P,j);Qg(b,e,f,p,P,j);Qg(b,e,m,g,P,j);Qg(b,e,m,p,P,j);break a;break}default:break a}while(0);if((h&255)<=2)return;if(!(h<<24>>24==3|(G|0)!=3))return;G=P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=A>>J;a[f+13448>>0]=k-H;a[f+13449>>0]=m-J;L=c[f+13460>>2]|0;M=f+13532|0;b[M>>1]=B>>L;B=c[f+13464>>2]|0;N=f+13534|0;b[N>>1]=A>>B;a[f+13536>>0]=k-L;a[f+13537>>0]=m-B;m=i<<1;k=h<<1&14;A=f+13316|0;c[A>>2]=(c[f+13628>>2]|0)+(m>>F);F=f+13320|0;c[F>>2]=(k>>>C)+(f+13640);C=f+13404|0;c[C>>2]=(c[f+13632>>2]|0)+(m>>H);H=f+13408|0;c[H>>2]=(k>>>J)+(f+13656);J=f+13492|0;c[J>>2]=(c[f+13636>>2]|0)+(m>>L);L=f+13496|0;c[L>>2]=(k>>>B)+(f+13672);c[f+13604>>2]=0-(h<<6);B=f+13608|0;c[B>>2]=w-(u+h)<<6;c[f+13596>>2]=0-(i<<6);w=f+13600|0;c[w>>2]=v-(t+i)<<6;if(!h)O=0;else O=c[(c[D>>2]|0)+(0-(c[f+13568>>2]|0)<<2)>>2]|0;c[f+13580>>2]=O;if((c[f+13560>>2]|0)<(i|0))P=c[(c[D>>2]|0)+-4>>2]|0;else P=0;c[f+13576>>2]=P;P=g+17836|0;Uf(y,(c[P>>2]|0)+40+((c[g+988>>2]|0)*160|0)+28|0,h,i);O=c[c[D>>2]>>2]|0;v=(j&255)>2;if((v?(j=c[g+712>>2]|0,k=c[g+716>>2]|0,k|j|0):0)?(a[29155+(s<<2)+(j<<1)+k>>0]|0)==13:0)Ub(c[f+13708>>2]|0,7,30817,p);xg(f,g,h,i,x,z);z=O+3|0;if(a[z>>0]|0){Jj(c[A>>2]|0,0,e[E>>1]|0)|0;Jj(c[F>>2]|0,0,e[G>>1]|0)|0;Jj(c[C>>2]|0,0,e[I>>1]|0)|0;Jj(c[H>>2]|0,0,e[K>>1]|0)|0;Jj(c[J>>2]|0,0,e[M>>1]|0)|0;Jj(c[L>>2]|0,0,e[N>>1]|0)|0}if((a[O+8>>0]|0)>0){L=i<<3;J=h<<3;H=c[c[D>>2]>>2]|0;C=c[19668+(d[H+7>>0]<<2)>>2]|0;if(!(c[g+17864>>2]|0))Q=0;else Q=c[g+17872>>2]|0;F=f+13708|0;A=(d[H>>0]|0)<3;x=(a[H+9>>0]|0)>0?2:1;p=f+13292|0;k=f+13380|0;j=f+13468|0;s=0;do{m=(a[H+8+s>>0]|0)+-1|0;R=g+796+(m<<6)|0;T=g+796+(m<<6)+8|0;U=(c[P>>2]|0)+40+((c[R>>2]|0)*160|0)|0;V=c[T>>2]|0;if((V|0)!=-1?(W=c[g+796+(m<<6)+12>>2]|0,(W|0)!=-1):0){X=W;Y=V;Z=59}else{Ub(c[F>>2]|0,5,30837,o);V=c[T>>2]|0;if((V|0)==-1)_=0;else{X=c[g+796+(m<<6)+12>>2]|0;Y=V;Z=59}}if((Z|0)==59){Z=0;_=(X|0)!=-1&((Y|0)!=16384|(X|0)!=16384)}V=_&1;Vf(y,s,c[g+796+(m<<6)+4>>2]|0,h,i,_?T:0);c[f+13616+(s<<2)>>2]=R;if(A){R=0;do{m=f+13280+(R*88|0)|0;W=f+13280+(R*88|0)+12|0;$=b[f+13280+(R*88|0)+76>>1]|0;aa=$&65535;ba=b[f+13280+(R*88|0)+78>>1]|0;ca=ba&65535;da=aa<<2;ea=ca<<2;fa=f+13280+(R*88|0)+20+(s<<3)|0;if(!($<<16>>16==0|ba<<16>>16==0)){ba=0;$=0;while(1){ga=$<<2;ha=ba;ia=0;while(1){Tf(q,m,H,s,ha);Sg(Q,y,R,da,ea,ia<<2,ga,4,4,L,J,C,T,fa,W,q,U,V,s);ia=ia+1|0;if((ia|0)==(aa|0))break;else ha=ha+1|0}$=$+1|0;if(($|0)==(ca|0))break;else ba=ba+aa|0}}R=R+1|0}while((R|0)!=3)}else{R=H+12+(s<<2)|0;c[q>>2]=e[R>>1]|e[R+2>>1]<<16;R=e[E>>1]<<2;aa=e[G>>1]<<2;Sg(Q,y,0,R,aa,0,0,R,aa,L,J,C,T,f+13300+(s<<3)|0,p,q,U,V,s);aa=e[I>>1]<<2;R=e[K>>1]<<2;Sg(Q,y,1,aa,R,0,0,aa,R,L,J,C,T,f+13388+(s<<3)|0,k,q,U,V,s);R=e[M>>1]<<2;aa=e[N>>1]<<2;Sg(Q,y,2,R,aa,0,0,R,aa,L,J,C,T,f+13476+(s<<3)|0,j,q,U,V,s)}s=s+1|0}while((s|0)!=(x|0));if(!(a[z>>0]|0)){x=O+2|0;s=f+13584|0;q=f+13588|0;j=O+4|0;C=f+13700|0;J=0;L=0;while(1){if(!L)ja=x;else ja=(c[f+13280+(L*88|0)+8>>2]|0)+(29207+(d[O>>0]<<4)+(d[x>>0]<<2)+(c[f+13280+(L*88|0)+4>>2]<<1))|0;Q=a[ja>>0]|0;N=Q&255;M=1<<N;k=c[w>>2]|0;K=(k|0)>-1;if(K)ka=0;else ka=k>>(c[f+13280+(L*88|0)+4>>2]|0)+5;k=ka+(e[f+13280+(L*88|0)+76>>1]|0)|0;I=c[B>>2]|0;p=(I|0)>-1;if(p)la=0;else la=I>>(c[f+13280+(L*88|0)+8>>2]|0)+5;I=la+(e[f+13280+(L*88|0)+78>>1]|0)|0;c[s>>2]=K?0:k;c[q>>2]=p?0:I;if((I|0)>0){p=(k|0)>0;K=19812+(N*12|0)|0;G=f+13280+(L*88|0)+12|0;E=f+13280+(L*88|0)+16|0;H=f+13280+(L*88|0)|0;A=(Q&255)<3;_=32<<N;X=Q<<24>>24==3;Y=32<<(N<<1);N=Q<<24>>24==0;Z=J;o=0;while(1){a:do if(p){if(N){F=0;P=Z;while(1){aa=Tg(f,L,K,F,o,0,a[j>>0]|0)|0;do if((aa|0)>0){R=c[E>>2]|0;ba=(c[G>>2]|0)+((S(R,o)|0)+F<<2)|0;ca=c[H>>2]|0;if(!(c[C>>2]|0))We(ca,ba,R,aa);else Xe(ca,ba,R,aa);if((aa|0)==1){b[ca>>1]=0;break}if(A&(aa|0)<11){Jj(ca|0,0,_|0)|0;break}if(X&(aa|0)<35){Jj(ca|0,0,512)|0;break}else{Jj(ca|0,0,Y|0)|0;break}}while(0);ca=aa+P|0;F=F+M|0;if((F|0)>=(k|0)){ma=ca;break a}else P=ca}}else{na=0;oa=Z}while(1){P=Tg(f,L,K,na,o,Q,a[j>>0]|0)|0;b:do if((P|0)>0){F=c[E>>2]|0;ca=(c[G>>2]|0)+((S(F,o)|0)+na<<2)|0;R=c[H>>2]|0;c:do if(!(c[C>>2]|0))switch(Q<<24>>24){case 3:{_e(R,ca,F,P);break c;break}case 1:{Ye(R,ca,F,P);break c;break}case 2:{Ze(R,ca,F,P);break c;break}default:break b}else Xe(R,ca,F,P);while(0);if((P|0)==1){b[R>>1]=0;break}if(A&(P|0)<11){Jj(R|0,0,_|0)|0;break}if(X&(P|0)<35){Jj(R|0,0,512)|0;break}else{Jj(R|0,0,Y|0)|0;break}}while(0);aa=P+oa|0;na=na+M|0;if((na|0)>=(k|0)){ma=aa;break}else oa=aa}}else ma=Z;while(0);o=o+M|0;if((o|0)>=(I|0)){pa=ma;break}else Z=ma}}else pa=J;L=L+1|0;if((L|0)==3)break;else J=pa}if(v&(pa|0)==0)a[z>>0]=1}}else{pa=O+2|0;v=f+13584|0;J=f+13588|0;L=O+6|0;ma=O+1|0;oa=f+13700|0;na=O+4|0;C=0;do{j=(C|0)==0;if(j)qa=pa;else qa=(c[f+13280+(C*88|0)+8>>2]|0)+(29207+(d[O>>0]<<4)+(d[pa>>0]<<2)+(c[f+13280+(C*88|0)+4>>2]<<1))|0;q=a[qa>>0]|0;s=q&255;la=1<<s;ka=c[w>>2]|0;ja=(ka|0)>-1;if(ja)ra=0;else ra=ka>>(c[f+13280+(C*88|0)+4>>2]|0)+5;ka=ra+(e[f+13280+(C*88|0)+76>>1]|0)|0;x=c[B>>2]|0;Z=(x|0)>-1;if(Z)sa=0;else sa=x>>(c[f+13280+(C*88|0)+8>>2]|0)+5;x=sa+(e[f+13280+(C*88|0)+78>>1]|0)|0;c[v>>2]=ja?0:ka;c[J>>2]=Z?0:x;if((x|0)>0){Z=(ka|0)>0;ja=j?ma:L;I=f+13280+(C*88|0)+12|0;o=f+13280+(C*88|0)+16|0;M=f+13280+(C*88|0)+80|0;k=f+13280+(C*88|0)|0;Y=(q&255)<3;X=32<<s;_=q<<24>>24==3;A=32<<(s<<1);Q=19812+(s*12|0)|0;H=0;do{if(Z){G=H<<1;E=0;do{K=c[o>>2]|0;N=(c[I>>2]|0)+((S(K,H)|0)+E<<2)|0;if(j&(d[O>>0]|0)<3)ta=(c[c[D>>2]>>2]|0)+20+((E+G|0)*12|0)|0;else ta=ja;p=a[ta>>0]|0;Wf(y,d[M>>0]|0,q,p,N,K,N,K,E,H,C);d:do if(!(a[z>>0]|0)){do if(j){if(c[oa>>2]|0){ua=0;va=Q;break}K=c[19772+((p&255)<<2)>>2]|0;ua=K;va=19860+(s*48|0)+(K*12|0)|0}else{ua=0;va=Q}while(0);P=Tg(f,C,va,E,H,q,a[na>>0]|0)|0;if((P|0)<=0)break;K=c[o>>2]|0;V=c[k>>2]|0;e:do if(!(c[oa>>2]|0))switch(q<<24>>24){case 0:{$e(ua,V,N,K,P);break e;break}case 1:{af(ua,V,N,K,P);break e;break}case 2:{bf(ua,V,N,K,P);break e;break}case 3:{_e(V,N,K,P);break e;break}default:break d}else Xe(V,N,K,P);while(0);if((P|0)==1){b[V>>1]=0;break}if((ua|0)==0&(Y&(P|0)<11)){Jj(V|0,0,X|0)|0;break}if(_&(P|0)<35){Jj(V|0,0,512)|0;break}else{Jj(V|0,0,A|0)|0;break}}while(0);E=E+la|0}while((E|0)<(ka|0))}H=H+la|0}while((H|0)<(x|0))}C=C+1|0}while((C|0)!=3)}C=f+13704|0;c[C>>2]=((c[f+20>>2]|0)+-33|0)>>>0<1073741791|c[C>>2];if(!(c[g+4372>>2]|0)){l=n;return}Gf(r,O,h,i,t,u);l=n;return}function Sg(d,e,f,g,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;n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!da)break;else{ca=ca+j|0;ba=(G|0)>-1&(ea|0)<(E|0)?ba+Q|0:ba;G=ea}}}}else if(o)if(i){G=e;ba=y;ca=v;da=W;while(1){Jj(ba|0,a[ca>>0]|0,z|0)|0;ea=da+1|0;G=G+-1|0;if(!G)break;else{ba=ba+j|0;ca=(da|0)>-1&(ea|0)<(E|0)?ca+Q|0:ca;da=ea}}}else{da=e;ca=y;ba=v;G=W;while(1){Jj(ca|0,a[ba>>0]|0,z|0)|0;Jj(ca+z|0,a[ba+H>>0]|0,t|0)|0;ea=G+1|0;da=da+-1|0;if(!da)break;else{ca=ca+j|0;ba=(G|0)>-1&(ea|0)<(E|0)?ba+Q|0:ba;G=ea}}}else if(i){G=e;ba=y;ca=v;da=W;while(1){Jj(ba|0,a[ca>>0]|0,z|0)|0;Qj(ba+z|0,ca+T+z|0,n|0)|0;ea=da+1|0;G=G+-1|0;if(!G)break;else{ba=ba+j|0;ca=(da|0)>-1&(ea|0)<(E|0)?ca+Q|0:ca;da=ea}}}else{da=e;ca=y;ba=v;G=W;while(1){Jj(ca|0,a[ba>>0]|0,z|0)|0;ea=ca+z|0;Qj(ea|0,ba+T+z|0,n|0)|0;Jj(ea+n|0,a[ba+H>>0]|0,t|0)|0;ea=G+1|0;da=da+-1|0;if(!da)break;else{ca=ca+j|0;ba=(G|0)>-1&(ea|0)<(E|0)?ba+Q|0:ba;G=ea}}}while(0);xb[c[q+24+(((f|0)!=0&1)<<4)+(((h|0)!=0&1)<<3)+(w<<2)>>2]&15](y+g|0,j,B,J,p+(f<<4)|0,O,p+(h<<4)|0,R,k,m);l=x;return}while(0);xb[c[q+24+(((f|0)!=0&1)<<4)+(((h|0)!=0&1)<<3)+(w<<2)>>2]&15](r,Q,B,c[A>>2]|0,p+(f<<4)|0,O,p+(h<<4)|0,R,k,m);l=x;return}function Tg(d,e,f,g,h,i,j){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;k=d+12|0;l=d+13280+(e*88|0)|0;m=d+13280+(e*88|0)+44+(j<<2)|0;j=(c[d+13280+(e*88|0)+36>>2]|0)+g|0;n=(c[d+13280+(e*88|0)+40>>2]|0)+h|0;switch(i<<24>>24){case 0:{i=Ug(c[d+13548>>2]|0,a[(c[c[d+13572>>2]>>2]|0)+8>>0]|0,c[d+13612>>2]|0,(e|0)>0&1,c[l>>2]|0,0,m,((a[n>>0]|0)!=0&1)+((a[j>>0]|0)!=0&1)|0,c[f>>2]|0,c[f+8>>2]|0,k)|0;o=(i|0)>0&1;a[n>>0]=o;a[j>>0]=o;p=i;return p|0}case 1:{i=c[d+13584>>2]|0;o=g+2|0;q=c[d+13588>>2]|0;r=h+2|0;s=Ug(c[d+13548>>2]|0,a[(c[c[d+13572>>2]>>2]|0)+8>>0]|0,c[d+13612>>2]|0,(e|0)>0&1,c[l>>2]|0,1,m,((b[n>>1]|0)!=0&1)+((b[j>>1]|0)!=0&1)|0,c[f>>2]|0,c[f+8>>2]|0,k)|0;t=(s|0)>0?257:0;b[j>>1]=t>>>((i|0)!=0&o>>>0>i>>>0?o-i<<3:0);b[n>>1]=t>>>((q|0)!=0&r>>>0>q>>>0?r-q<<3:0);p=s;return p|0}case 2:{s=c[d+13584>>2]|0;q=g+4|0;r=c[d+13588>>2]|0;t=h+4|0;i=Ug(c[d+13548>>2]|0,a[(c[c[d+13572>>2]>>2]|0)+8>>0]|0,c[d+13612>>2]|0,(e|0)>0&1,c[l>>2]|0,2,m,((c[n>>2]|0)!=0&1)+((c[j>>2]|0)!=0&1)|0,c[f>>2]|0,c[f+8>>2]|0,k)|0;o=(i|0)>0?16843009:0;c[j>>2]=o>>>((s|0)!=0&q>>>0>s>>>0?q-s<<3:0);c[n>>2]=o>>>((r|0)!=0&t>>>0>r>>>0?t-r<<3:0);p=i;return p|0}case 3:{i=c[d+13584>>2]|0;r=g+8|0;g=c[d+13588>>2]|0;t=h+8|0;h=j;o=n;s=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<ca}else{ca=Ua-da|0;da=d[1280+ca>>0]|0;Oc=0-ka|0;Pc=da;Qc=ca<<da;Rc=Nc-ja<<da}da=Mc-Pc|0;b[i+(b[n+(Aa<<1)>>1]<<1)>>1]=Oc;ja=Aa+1|0;ca=ja<<1;if((ja|0)<(t|0)){$=za;j=ja;aa=da;z=((d[r+(b[o+(ca<<1)>>1]|0)>>0]|0)+1+(d[r+(b[o+((ca|1)<<1)>>1]|0)>>0]|0)|0)>>>1;m=F;k=Qc;x=Rc}else{B=ja;C=Qc;D=Rc;E=da;ha=102;break}}if((ha|0)==14){Rc=d[1280+ea>>0]|0;Qc=ea<<Rc;ea=ga<<Rc;ga=fa-Rc|0;Rc=e+816+(s*2304|0)+(h*1152|0)+(u*576|0)+(ba*96|0)+(z<<4)+12|0;if(!A){B=j;C=Qc;D=ea;E=ga;c[p>>2]=D;c[w>>2]=C;c[y>>2]=E;l=q;return B|0}c[Rc>>2]=(c[Rc>>2]|0)+1;B=j;C=Qc;D=ea;E=ga;c[p>>2]=D;c[w>>2]=C;c[y>>2]=E;l=q;return B|0}else if((ha|0)==102){c[p>>2]=D;c[w>>2]=C;c[y>>2]=E;l=q;return B|0}return 0}function Vg(a){a=a|0;cj((c[a+12>>2]|0)+40|0)|0;return}function Wg(a){a=a|0;$i((c[a+12>>2]|0)+40|0)|0;return}function Xg(a){a=a|0;mj((c[a+12>>2]|0)+68|0)|0;return}function Yg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0;e=l;l=l+16|0;f=e;if(!b){l=e;return}g=b+152|0;h=b+140|0;if((c[g>>2]|0)>=(d|0)?(c[h>>2]|0)!=1:0){l=e;return}i=(c[b+148>>2]|0)+12|0;j=c[i>>2]|0;k=c[j>>2]|0;m=j+40|0;cj(m)|0;n=k+17868|0;a:do if((c[g>>2]|0)<(d|0)){k=j+68|0;while(1){if((c[n>>2]|0)!=(b|0)){o=9;break a}if((c[h>>2]|0)==1){o=10;break a}wj(k,m)|0;if((c[g>>2]|0)>=(d|0)){o=9;break}}}else o=9;while(0);if((o|0)==9?(c[h>>2]|0)==1:0)o=10;if((o|0)==10){o=c[a+12>>2]|0;$i((c[i>>2]|0)+40|0)|0;h=(c[o>>2]|0)+432|0;c[f>>2]=a;Ub(h,7,31109,f)}$i((c[i>>2]|0)+40|0)|0;l=e;return}function Zg(a,b){a=a|0;b=b|0;var d=0;d=(c[a+148>>2]|0)+12|0;cj((c[d>>2]|0)+40|0)|0;c[a+152>>2]=b;mj((c[d>>2]|0)+68|0)|0;$i((c[d>>2]|0)+40|0)|0;return}function _g(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=f+12|0;f=c[g>>2]|0;h=c[d+12>>2]|0;d=c[f>>2]|0;i=c[h>>2]|0;j=f+40|0;cj(j)|0;k=f+116|0;if(!(c[k>>2]|0)){l=f+68|0;do wj(l,j)|0;while(!(c[k>>2]|0))}k=d+4412|0;c[i+1200>>2]=c[((a[k>>0]|0)==0?d+1200|0:d+1204|0)>>2];c[(c[h>>2]|0)+18728>>2]=c[(c[f>>2]|0)+18728>>2];$i((c[g>>2]|0)+40|0)|0;c[i+17784>>2]=c[d+17784>>2];g=c[d+1008>>2]|0;c[i+724>>2]=c[((g|0)==0?d+728|0:d+724|0)>>2];f=(g|0)!=0;c[i+704>>2]=c[(f?d+704|0:d+688|0)>>2];c[i+708>>2]=c[(f?d+708|0:d+692|0)>>2];c[i+712>>2]=c[d+712>>2];c[i+716>>2]=c[d+716>>2];c[i+996>>2]=c[d+996>>2];c[i+1004>>2]=c[(f?d+1004|0:d+1e3|0)>>2];c[i+732>>2]=c[d+764>>2];c[i+736>>2]=c[d+768>>2];c[i+740>>2]=c[d+772>>2];c[i+744>>2]=c[d+776>>2];c[i+748>>2]=c[d+780>>2];c[i+752>>2]=c[d+784>>2];c[i+756>>2]=c[d+788>>2];c[i+760>>2]=c[d+792>>2];Qj(i+1216|0,d+1216|0,3072)|0;c[i+4384>>2]=c[d+4380>>2];c[i+4372>>2]=c[d+4372>>2];f=i+4390|0;g=d+4390|0;h=e[g>>1]|e[g+2>>1]<<16;b[f>>1]=h;b[f+2>>1]=h>>>16;b[i+4398>>1]=b[d+4398>>1]|0;h=i+4412|0;f=k;k=h+116|0;do{c[h>>2]=c[f>>2];h=h+4|0;f=f+4|0}while((h|0)<(k|0));Qj(c[i+4544>>2]|0,c[d+4544>>2]|0,8176)|0;return}function $g(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0;b=l;l=l+32|0;d=b+8|0;e=b;f=4;g=Bj(40)|0;c[g>>2]=0;h=b+16|0;i=b+12|0;o=0;j=ja(27,32,18736)|0;k=o;o=0;if((k|0)!=0&(p|0)!=0){m=Oj(c[k>>2]|0,g|0,f|0)|0;if(!m)ya(k|0,p|0);D=p}else m=-1;if((m|0)!=1){nb(c,h>>2,j)|0;if(!(mb(c,h>>2)|0))n=0;else n=(mb(c,h>>2)|0)+432|0;nb(c,i>>2,n)|0;if(!(mb(c,i>>2)|0)){q=i;r=0;Cj(g|0);l=b;return r|0}Jj(mb(c,h>>2)|0,0,18736)|0;g=Lj((mb(c,i>>2)|0)+92|0,1,g|0,f|0)|0;f=D;o=0;n=o;o=0;if((n|0)!=0&(p|0)!=0){s=Oj(c[n>>2]|0,g|0,f|0)|0;if(!s)ya(n|0,p|0);D=p}else s=-1;if((s|0)==1){t=D;u=i}else{t=0;u=i}}else{t=D;u=0}while(1){s=(mb(c,i>>2)|0)+88|0;if(t|0){c[s>>2]=0;n=mb(c,h>>2)|0;o=0;ca(6,n|0);n=o;o=0;if((n|0)!=0&(p|0)!=0){v=Oj(c[n>>2]|0,g|0,f|0)|0;if(!v)ya(n|0,p|0);D=p}else v=-1;if((v|0)==1){w=u;t=D;u=w;continue}else{x=9;break}}c[s>>2]=1;o=0;s=ja(28,1,2044)|0;n=o;o=0;if((n|0)!=0&(p|0)!=0){y=Oj(c[n>>2]|0,g|0,f|0)|0;if(!y)ya(n|0,p|0);D=p}else y=-1;if((y|0)==1){w=u;t=D;u=w;continue}c[(mb(c,i>>2)|0)+4108>>2]=s;if(!(c[(mb(c,i>>2)|0)+4108>>2]|0)){s=mb(c,i>>2)|0;o=0;la(54,s|0,2,31142,e|0);s=o;o=0;if((s|0)!=0&(p|0)!=0){z=Oj(c[s>>2]|0,g|0,f|0)|0;if(!z)ya(s|0,p|0);D=p}else z=-1;if((z|0)==1){w=u;t=D;u=w;continue}}o=0;s=ja(28,4,2044)|0;n=o;o=0;if((n|0)!=0&(p|0)!=0){A=Oj(c[n>>2]|0,g|0,f|0)|0;if(!A)ya(n|0,p|0);D=p}else A=-1;if((A|0)==1){w=u;t=D;u=w;continue}c[(mb(c,i>>2)|0)+4112>>2]=s;if(!(c[(mb(c,i>>2)|0)+4112>>2]|0)){s=mb(c,i>>2)|0;o=0;la(54,s|0,2,31168,d|0);s=o;o=0;if((s|0)!=0&(p|0)!=0){B=Oj(c[s>>2]|0,g|0,f|0)|0;if(!B)ya(s|0,p|0);D=p}else B=-1;if((B|0)==1){w=u;t=D;u=w;continue}}c[(mb(c,h>>2)|0)+18728>>2]=1;o=0;ja(29,35064,5)|0;s=o;o=0;if((s|0)!=0&(p|0)!=0){C=Oj(c[s>>2]|0,g|0,f|0)|0;if(!C)ya(s|0,p|0);D=p}else C=-1;if((C|0)==1){w=u;t=D;u=w;continue}s=(mb(c,i>>2)|0)+300|0;c[s>>2]=-1;c[s+4>>2]=-1;c[s+8>>2]=-1;c[s+12>>2]=-1;c[s+16>>2]=-1;c[s+20>>2]=-1;c[s+24>>2]=-1;c[s+28>>2]=-1;s=(mb(c,i>>2)|0)+332|0;c[s>>2]=-1;c[s+4>>2]=-1;c[s+8>>2]=-1;c[s+12>>2]=-1;c[s+16>>2]=-1;c[s+20>>2]=-1;c[s+24>>2]=-1;c[s+28>>2]=-1;c[(mb(c,i>>2)|0)+17344>>2]=0;c[(mb(c,h>>2)|0)+17856>>2]=1;c[(mb(c,h>>2)|0)+17836>>2]=a;c[(mb(c,i>>2)|0)+17352>>2]=8;c[(mb(c,i>>2)|0)+17356>>2]=8;c[(mb(c,i>>2)|0)+720>>2]=30;c[(mb(c,i>>2)|0)+724>>2]=7;c[(mb(c,i>>2)|0)+728>>2]=8;s=mb(c,i>>2)|0;o=0;ca(9,s|0);s=o;o=0;if((s|0)!=0&(p|0)!=0){E=Oj(c[s>>2]|0,g|0,f|0)|0;if(!E)ya(s|0,p|0);D=p}else E=-1;if((E|0)==1){w=u;t=D;u=w;continue}c[(mb(c,i>>2)|0)+88>>2]=0;o=0;s=ba(1)|0;n=o;o=0;if((n|0)!=0&(p|0)!=0){F=Oj(c[n>>2]|0,g|0,f|0)|0;if(!F)ya(n|0,p|0);D=p}else F=-1;if((F|0)==1){w=u;t=D;u=w;continue}n=c[s>>2]|0;s=(mb(c,h>>2)|0)+17876|0;o=0;ca(n|0,s|0);s=o;o=0;if((s|0)!=0&(p|0)!=0){G=Oj(c[s>>2]|0,g|0,f|0)|0;if(!G)ya(s|0,p|0);D=p}else G=-1;if((G|0)==1){w=u;t=D;u=w}else{x=22;break}}if((x|0)==9){q=u;r=0;Cj(g|0);l=b;return r|0}else if((x|0)==22){q=u;r=mb(c,h>>2)|0;Cj(g|0);l=b;return r|0}return 0}function ah(a){a=a|0;var b=0,d=0,e=0,f=0;if(!a)return;zb[c[(we()|0)+20>>2]&31](a+17876|0);Yb(c[a+17888>>2]|0);b=a+18676|0;d=a+17900|0;if((c[b>>2]|0)>0){e=0;do{f=(c[d>>2]|0)+(e*24|0)|0;zb[c[(we()|0)+20>>2]&31](f);e=e+1|0}while((e|0)<(c[b>>2]|0))}Yb(c[a+17904>>2]|0);Yb(c[d>>2]|0);if((c[b>>2]|0)>0)Lf(a+18684|0);Yb(a);return}function bh(){if(mb(c,8767)|0)return;gf();ne();bc();Xf();nb(c,8767,1)|0;return}function ch(a,b){a=a|0;b=b|0;var d=0,e=0;d=Xb(b,68)|0;c[a+704>>2]=d;if(!d){e=1;return e|0}c[a+700>>2]=b;d=Xb(b,4)|0;c[a+732>>2]=d;e=(d|0)==0&1;return e|0}function dh(a){a=a|0;var b=0;b=a+704|0;Yb(c[b>>2]|0);c[b>>2]=0;b=a+732|0;Yb(c[b>>2]|0);c[b>>2]=0;return}function eh(a){a=a|0;var b=0,d=0;b=c[a+612>>2]|0;c[a+708>>2]=(c[a+704>>2]|0)+(b*68|0)+68;d=c[a+732>>2]|0;c[a+736>>2]=d+(b<<2)+4;Jj(d|0,0,S(b<<2,(c[a+600>>2]|0)+1|0)|0)|0;return}function fh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0;e=l;l=l+32|0;f=e+16|0;g=e+8|0;h=e;i=a+432|0;do if((b|0)==1){j=c[a+732>>2]|0;if((j|0)<0){Ub(i,1,31206,h);k=1;l=e;return k|0}m=c[a+17836>>2]|0;n=m+40+(j*160|0)+28|0;if((((c[m+40+(j*160|0)+32>>2]|0)==(c[d+4>>2]|0)?(c[n>>2]|0)==(c[d>>2]|0):0)?(c[m+40+(j*160|0)+52>>2]|0)==(c[d+24>>2]|0):0)?(c[m+40+(j*160|0)+48>>2]|0)==(c[d+20>>2]|0):0){ac(n,d);break}Ub(i,1,31232,g)}else Ub(i,1,31260,f);while(0);k=c[i>>2]|0;l=e;return k|0}function gh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=l;l=l+32|0;f=e+16|0;g=e+8|0;switch(b|0){case 1:{h=0;break}case 2:{h=1;break}case 4:{h=2;break}default:{Ub(a,1,31260,e);i=c[a>>2]|0;l=e;return i|0}}b=c[a+300+(h<<2)>>2]|0;if(b>>>0>14){Ub(a,1,31284,g);i=c[a>>2]|0;l=e;return i|0}g=c[a+17404>>2]|0;h=g+40+(b*160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0&(p|0)!=0){w=Oj(c[v>>2]|0,i|0,h|0)|0;if(!w)ya(v|0,p|0);D=p}else w=-1;if((w|0)==1){x=D;y=0}else z=9}else z=9;do if((z|0)==9){w=(mb(c,j>>2)|0)+17404|0;v=c[w>>2]|0;o=0;ca(10,v|0);t=o;o=0;if((t|0)!=0&(p|0)!=0){A=Oj(c[t>>2]|0,i|0,h|0)|0;if(!A)ya(t|0,p|0);D=p}else A=-1;if((A|0)!=1){if(c[v+40>>2]|0)if(c[v+200>>2]|0)if(c[v+360>>2]|0)if(c[v+520>>2]|0)if(c[v+680>>2]|0)if(c[v+840>>2]|0)if(c[v+1e3>>2]|0)if(c[v+1160>>2]|0)if(c[v+1320>>2]|0)if(c[v+1480>>2]|0)if(c[v+1640>>2]|0)if(c[v+1800>>2]|0)if(c[v+1960>>2]|0)if(c[v+2120>>2]|0)if(!(c[v+2280>>2]|0)){B=14;z=12}else C=-1;else{B=13;z=12}else{B=12;z=12}else{B=11;z=12}else{B=10;z=12}else{B=9;z=12}else{B=8;z=12}else{B=7;z=12}else{B=6;z=12}else{B=5;z=12}else{B=4;z=12}else{B=3;z=12}else{B=2;z=12}else{B=1;z=12}else{B=0;z=12}if((z|0)==12){c[v+40+(B*160|0)>>2]=1;C=B}o=0;ca(11,c[w>>2]|0);w=o;o=0;if((w|0)!=0&(p|0)!=0){E=Oj(c[w>>2]|0,i|0,h|0)|0;if(!E)ya(w|0,p|0);D=p}else E=-1;if((E|0)!=1){c[(mb(c,j>>2)|0)+556>>2]=C;if((c[(mb(c,j>>2)|0)+556>>2]|0)==-1){w=mb(c,j>>2)|0;o=0;la(54,w|0,2,31312,g|0);w=o;o=0;if((w|0)!=0&(p|0)!=0){F=Oj(c[w>>2]|0,i|0,h|0)|0;if(!F)ya(w|0,p|0);D=p}else F=-1;if((F|0)==1){x=D;y=0;break}G=c[(mb(c,j>>2)|0)>>2]|0;Cj(i|0);l=f;return G|0}w=mb(c,k>>2)|0;v=w+40+((c[(mb(c,j>>2)|0)+556>>2]|0)*160|0)|0;c[(mb(c,j>>2)|0)+296>>2]=v;v=b+18732|0;c[v>>2]=0;if(c[r>>2]|0){w=c[b+17872>>2]|0;o=0;ca(12,w|0);t=o;o=0;if((t|0)!=0&(p|0)!=0){H=Oj(c[t>>2]|0,i|0,h|0)|0;if(!H)ya(t|0,p|0);D=p}else H=-1;if((H|0)==1){x=D;y=v;break}t=mb(c,m>>2)|0;c[t+((c[(mb(c,j>>2)|0)+556>>2]|0)*160|0)+148>>2]=w;t=mb(c,m>>2)|0;s=c[(mb(c,j>>2)|0)+556>>2]|0;c[b+17868>>2]=t+(s*160|0);c[t+(s*160|0)+152>>2]=-1;c[t+(s*160|0)+156>>2]=-1;o=0;ca(13,w|0);w=o;o=0;if((w|0)!=0&(p|0)!=0){I=Oj(c[w>>2]|0,i|0,h|0)|0;if(!I)ya(w|0,p|0);D=p}else I=-1;if((I|0)==1){x=D;y=v;break}}else{w=mb(c,m>>2)|0;c[b+17868>>2]=w+((c[(mb(c,j>>2)|0)+556>>2]|0)*160|0)}i=Lj((mb(c,j>>2)|0)+92|0,1,i|0,h|0)|0;h=D;o=0;w=o;o=0;if((w|0)!=0&(p|0)!=0){J=Oj(c[w>>2]|0,i|0,h|0)|0;if(!J)ya(w|0,p|0);D=p}else J=-1;if((J|0)==1){x=D;y=v}else{x=0;y=v}}else{x=D;y=0}}else{x=D;y=0}}while(0);a:while(1){if(x|0){o=0;J=ba(1)|0;I=o;o=0;if((I|0)!=0&(p|0)!=0){K=Oj(c[I>>2]|0,i|0,h|0)|0;if(!K)ya(I|0,p|0);D=p}else K=-1;if((K|0)==1){L=y;x=D;y=L;continue}c[(mb(c,j>>2)|0)+88>>2]=0;c[q>>2]=1;I=J+8|0;o=0;ea(c[I>>2]|0,b+17876|0)|0;J=o;o=0;if((J|0)!=0&(p|0)!=0){M=Oj(c[J>>2]|0,i|0,h|0)|0;if(!M)ya(J|0,p|0);D=p}else M=-1;if((M|0)==1){L=y;x=D;y=L;continue}J=b+18676|0;if((c[J>>2]|0)>0){H=b+17900|0;F=0;while(1){o=0;ea(c[I>>2]|0,(c[H>>2]|0)+(F*24|0)|0)|0;g=o;o=0;if((g|0)!=0&(p|0)!=0){N=Oj(c[g>>2]|0,i|0,h|0)|0;if(!N)ya(g|0,p|0);D=p}else N=-1;if((N|0)==1){L=y;x=D;y=L;continue a}F=F+1|0;if((F|0)>=(c[J>>2]|0))break}}J=mb(c,k>>2)|0;o=0;ca(10,J|0);J=o;o=0;if((J|0)!=0&(p|0)!=0){O=Oj(c[J>>2]|0,i|0,h|0)|0;if(!O)ya(J|0,p|0);D=p}else O=-1;if((O|0)==1){L=y;x=D;y=L;continue}if((c[y>>2]|0)==1){J=c[b+17860>>2]|0;if(J){F=J;J=0;while(1){H=c[(mb(c,j>>2)|0)+300+(J<<2)>>2]|0;I=mb(c,m>>2)|0;g=mb(c,k>>2)|0;C=(H|0)>-1;if(((C?(E=I+(H*160|0)|0,B=c[E>>2]|0,(B|0)>0):0)?(A=B+-1|0,c[E>>2]=A,(A|0)==0):0)?c[I+(H*160|0)+24>>2]|0:0){o=0;ja(c[g+36>>2]|0,c[g+28>>2]|0,I+(H*160|0)+16|0)|0;I=o;o=0;if((I|0)!=0&(p|0)!=0){P=Oj(c[I>>2]|0,i|0,h|0)|0;if(!P)ya(I|0,p|0);D=p}else P=-1;if((P|0)==1){L=y;x=D;y=L;continue a}}do if(((F&1|0?(I=mb(c,m>>2)|0,g=mb(c,k>>2)|0,C):0)?(A=I+(H*160|0)|0,E=c[A>>2]|0,(E|0)>0):0)?(B=E+-1|0,c[A>>2]=B,(B|0)==0):0){if(!(c[I+(H*160|0)+24>>2]|0))break;o=0;ja(c[g+36>>2]|0,c[g+28>>2]|0,I+(H*160|0)+16|0)|0;I=o;o=0;if((I|0)!=0&(p|0)!=0){Q=Oj(c[I>>2]|0,i|0,h|0)|0;if(!Q)ya(I|0,p|0);D=p}else Q=-1;if((Q|0)==1){L=y;x=D;y=L;continue a}}while(0);J=J+1|0;F=F>>1;if(!F)break}if((J|0)<8){R=J;z=62}}else{R=0;z=62}b:do if((z|0)==62)while(1){z=0;if(c[(mb(c,j>>2)|0)+576>>2]|0)break b;F=c[(mb(c,j>>2)|0)+300+(R<<2)>>2]|0;H=mb(c,m>>2)|0;C=mb(c,k>>2)|0;if((((F|0)>-1?(I=H+(F*160|0)|0,g=c[I>>2]|0,(g|0)>0):0)?(B=g+-1|0,c[I>>2]=B,(B|0)==0):0)?c[H+(F*160|0)+24>>2]|0:0){o=0;ja(c[C+36>>2]|0,c[C+28>>2]|0,H+(F*160|0)+16|0)|0;F=o;o=0;if((F|0)!=0&(p|0)!=0){S=Oj(c[F>>2]|0,i|0,h|0)|0;if(!S)ya(F|0,p|0);D=p}else S=-1;if((S|0)==1){L=y;x=D;y=L;continue a}}R=R+1|0;if((R|0)>=8)break;else z=62}while(0);c[y>>2]=0}J=c[(mb(c,j>>2)|0)+556>>2]|0;F=mb(c,m>>2)|0;H=mb(c,k>>2)|0;if((((J|0)>-1?(C=F+(J*160|0)|0,B=c[C>>2]|0,(B|0)>0):0)?(I=B+-1|0,c[C>>2]=I,(I|0)==0):0)?c[F+(J*160|0)+24>>2]|0:0){o=0;ja(c[H+36>>2]|0,c[H+28>>2]|0,F+(J*160|0)+16|0)|0;J=o;o=0;if((J|0)!=0&(p|0)!=0){T=Oj(c[J>>2]|0,i|0,h|0)|0;if(!T)ya(J|0,p|0);D=p}else T=-1;if((T|0)==1){L=y;x=D;y=L;continue}}J=mb(c,k>>2)|0;o=0;ca(11,J|0);J=o;o=0;if((J|0)!=0&(p|0)!=0){U=Oj(c[J>>2]|0,i|0,h|0)|0;if(!U)ya(J|0,p|0);D=p}else U=-1;if((U|0)==1){L=y;x=D;y=L;continue}else{z=78;break}}c[(mb(c,j>>2)|0)+88>>2]=1;o=0;la(55,b|0,n|0,n+d|0,e|0);J=o;o=0;if((J|0)!=0&(p|0)!=0){V=Oj(c[J>>2]|0,i|0,h|0)|0;if(!V)ya(J|0,p|0);D=p}else V=-1;if((V|0)==1){L=y;x=D;y=L;continue}J=b+17836|0;F=c[J>>2]|0;o=0;ca(10,F|0);H=o;o=0;if((H|0)!=0&(p|0)!=0){W=Oj(c[H>>2]|0,i|0,h|0)|0;if(!W)ya(H|0,p|0);D=p}else W=-1;if((W|0)==1){L=y;x=D;y=L;continue}H=c[b+17860>>2]|0;I=F+36|0;C=F+28|0;if(H){B=H;H=0;while(1){g=b+732+(H<<2)|0;A=c[g>>2]|0;if((A|0)>-1){E=F+40+(A*160|0)|0;v=c[E>>2]|0;if(((v|0)>0?(w=v+-1|0,c[E>>2]=w,(w|0)==0):0)?c[F+40+(A*160|0)+24>>2]|0:0){o=0;ja(c[I>>2]|0,c[C>>2]|0,F+40+(A*160|0)+16|0)|0;w=o;o=0;if((w|0)!=0&(p|0)!=0){X=Oj(c[w>>2]|0,i|0,h|0)|0;if(!X)ya(w|0,p|0);D=p}else X=-1;if((X|0)==1){L=y;x=D;y=L;continue a}}if(((B&1|0?(w=c[E>>2]|0,(w|0)>0):0)?(v=w+-1|0,c[E>>2]=v,(v|0)==0):0)?c[F+40+(A*160|0)+24>>2]|0:0){o=0;ja(c[I>>2]|0,c[C>>2]|0,F+40+(A*160|0)+16|0)|0;A=o;o=0;if((A|0)!=0&(p|0)!=0){Y=Oj(c[A>>2]|0,i|0,h|0)|0;if(!Y)ya(A|0,p|0);D=p}else Y=-1;if((Y|0)==1){L=y;x=D;y=L;continue a}}}c[g>>2]=c[b+764+(H<<2)>>2];H=H+1|0;B=B>>1;if(!B)break}if((H|0)<8){Z=H;z=83}}else{Z=0;z=83}c:do if((z|0)==83){z=0;B=b+1008|0;g=Z;while(1){if(c[B>>2]|0)break c;A=b+732+(g<<2)|0;v=c[A>>2]|0;if((((v|0)>-1?(E=F+40+(v*160|0)|0,w=c[E>>2]|0,(w|0)>0):0)?(s=w+-1|0,c[E>>2]=s,(s|0)==0):0)?c[F+40+(v*160|0)+24>>2]|0:0){o=0;ja(c[I>>2]|0,c[C>>2]|0,F+40+(v*160|0)+16|0)|0;v=o;o=0;if((v|0)!=0&(p|0)!=0){_=Oj(c[v>>2]|0,i|0,h|0)|0;if(!_)ya(v|0,p|0);D=p}else _=-1;if((_|0)==1){L=y;x=D;y=L;continue a}}c[A>>2]=c[b+764+(g<<2)>>2];g=g+1|0;if((g|0)>=8)break}}while(0);o=0;ca(11,F|0);C=o;o=0;if((C|0)!=0&(p|0)!=0){$=Oj(c[C>>2]|0,i|0,h|0)|0;if(!$)ya(C|0,p|0);D=p}else $=-1;if(($|0)==1){L=y;x=D;y=L;continue}c[y>>2]=0;C=b+988|0;c[b+720>>2]=(c[J>>2]|0)+40+((c[C>>2]|0)*160|0)+28;if(!((c[r>>2]|0)!=0?(c[b+1e3>>2]|0)!=0:0)){o=0;ca(10,F|0);I=o;o=0;if((I|0)!=0&(p|0)!=0){aa=Oj(c[I>>2]|0,i|0,h|0)|0;if(!aa)ya(I|0,p|0);D=p}else aa=-1;if((aa|0)==1){L=y;x=D;y=L;continue}I=F+40+((c[C>>2]|0)*160|0)|0;c[I>>2]=(c[I>>2]|0)+-1;o=0;ca(11,F|0);I=o;o=0;if((I|0)!=0&(p|0)!=0){da=Oj(c[I>>2]|0,i|0,h|0)|0;if(!da)ya(I|0,p|0);D=p}else da=-1;if((da|0)==1){L=y;x=D;y=L;continue}}c[b+796>>2]=-1;c[b+860>>2]=-1;c[b+924>>2]=-1;if((c[(mb(c,j>>2)|0)+576>>2]|0)==0?(I=c[(mb(c,j>>2)|0)+568>>2]|0,c[(mb(c,j>>2)|0)+572>>2]=I,I=c[(mb(c,j>>2)|0)+296>>2]|0,c[(mb(c,j>>2)|0)+292>>2]=I,(a[(mb(c,j>>2)|0)+3980>>0]|0)!=0):0){if(!(c[r>>2]|0)){I=mb(c,j>>2)|0;o=0;ca(14,I|0);I=o;o=0;if((I|0)!=0&(p|0)!=0){fa=Oj(c[I>>2]|0,i|0,h|0)|0;if(!fa)ya(I|0,p|0);D=p}else fa=-1;if((fa|0)==1){L=y;x=D;y=L;continue}z=116}}else z=116;if((z|0)==116?(z=0,(c[r>>2]|0)==0):0){z=123;break}I=c[b+17872>>2]|0;C=c[I+12>>2]|0;o=0;ca(12,I|0);H=o;o=0;if((H|0)!=0&(p|0)!=0){ga=Oj(c[H>>2]|0,i|0,h|0)|0;if(!ga)ya(H|0,p|0);D=p}else ga=-1;if((ga|0)==1){L=y;x=D;y=L;continue}if(c[(mb(c,j>>2)|0)+568>>2]|0){H=(mb(c,j>>2)|0)+17344|0;c[H>>2]=(c[H>>2]|0)+1}c[C+120>>2]=1;c[C+116>>2]=1;o=0;ca(15,I|0);C=o;o=0;if((C|0)!=0&(p|0)!=0){ha=Oj(c[C>>2]|0,i|0,h|0)|0;if(!ha)ya(C|0,p|0);D=p}else ha=-1;if((ha|0)==1){L=y;x=D;y=L;continue}o=0;ca(13,I|0);I=o;o=0;if((I|0)!=0&(p|0)!=0){ia=Oj(c[I>>2]|0,i|0,h|0)|0;if(!ia)ya(I|0,p|0);D=p}else ia=-1;if((ia|0)==1){L=y;x=D;y=L}else{z=122;break}}if((z|0)==78){G=-1;Cj(i|0);l=f;return G|0}else if((z|0)!=122)if((z|0)==123?(z=c[(mb(c,j>>2)|0)+256>>2]|0,c[(mb(c,j>>2)|0)+272>>2]=z,z=c[(mb(c,j>>2)|0)+260>>2]|0,c[(mb(c,j>>2)|0)+276>>2]=z,c[(mb(c,j>>2)|0)+568>>2]|0):0){z=(mb(c,j>>2)|0)+17344|0;c[z>>2]=(c[z>>2]|0)+1}c[(mb(c,j>>2)|0)+88>>2]=0;G=0;Cj(i|0);l=f;return G|0}function ih(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=a+17856|0;if((c[d>>2]|0)==1){e=-1;return e|0}c[d>>2]=1;if(!(c[a+1e3>>2]|0)){e=-1;return e|0}d=b;b=c[a+720>>2]|0;a=d+120|0;do{c[d>>2]=c[b>>2];d=d+4|0;b=b+4|0}while((d|0)<(a|0));e=0;return e|0}function jh(b,e,f,g,h,i){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;j=l;l=l+32|0;k=j;m=b+e|0;n=m+-1|0;o=(h|0)==0;if(o)p=a[n>>0]|0;else{Ib[h&63](i,n,k,1);p=a[k>>0]|0}c[g>>2]=0;n=p&255;if((n&224|0)!=192){q=0;l=j;return q|0}r=(n&7)+1|0;s=(n>>>3&3)+1|0;n=S(s,r)|0;if((n+2|0)>>>0>e>>>0){q=7;l=j;return q|0}t=-2-n|0;u=m+t|0;if(o)v=a[u>>0]|0;else{Ib[h&63](i,u,k,1);v=a[k>>0]|0}if(p<<24>>24!=v<<24>>24){q=7;l=j;return q|0}v=b+(e+1+t)|0;if(o){w=0;x=v}else{Ib[h&63](i,v,k,n);w=0;x=k}while(1){k=0;n=0;v=x;while(1){n=(d[v>>0]|0)<<(k<<3)|n;k=k+1|0;if((k|0)==(s|0))break;else v=v+1|0}c[f+(w<<2)>>2]=n;w=w+1|0;if((w|0)==(r|0))break;else x=x+s|0}c[g>>2]=r;q=0;l=j;return q|0}function kh(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=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)>>>8;if((sa|0)<0){gc(b);Za=c[b>>2]|0;_a=c[h>>2]|0}else{Za=va;_a=sa}sa=g<<24;if(Za>>>0<sa>>>0){$a=0;ab=g;bb=Za}else{$a=1;ab=(c[f>>2]|0)-g|0;bb=Za-sa|0}sa=d[1280+ab>>0]|0;c[b>>2]=bb<<sa;c[h>>2]=_a-sa;c[f>>2]=ab<<sa;N=Ha|Ma|Ra|Wa|$a}while(0);$a=d[e>>0]|0;Wa=d[31345+N>>0]|0;N=$a+-1|0;Ra=N<<1;if((Ra|0)<256){do if((Ra|0)>=(Wa|0))if(!(Wa&1)){cb=(Wa>>>1)+N|0;break}else{cb=N-((Wa+1|0)>>>1)|0;break}else cb=Wa;while(0);db=cb+1|0}else{cb=$a^255;do if(cb<<1>>>0>=Wa>>>0)if(!(Wa&1)){eb=(Wa>>>1)+cb|0;break}else{eb=cb-((Wa+1|0)>>>1)|0;break}else eb=Wa;while(0);db=255-eb|0}a[e>>0]=db;return}function lh(){var a=0,b=0,d=0;a=l;l=l+16|0;b=a;d=Xa(35072,0,7,0)|0;if(d|0){c[b>>2]=d;ri(31600,b)|0}Aj(35076,0)|0;qj(35104,0)|0;l=a;return}function mh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,i=0.0,j=0.0;a=l;l=l+32|0;b=a+8|0;d=a;e=a+12|0;c[8788]=wg()|0;a=Wa()|0;f=(a|0)<4?a:4;c[d>>2]=f;ri(31635,d)|0;c[e>>2]=f;c[e+4>>2]=0;c[e+8>>2]=0;Qb(35156,c[8788]|0,e,0,10)|0;while(1){cj(35076)|0;while(1){if((c[8796]|0)==0?(g=c[8798]|0,(c[8797]|0)!=(g|0)):0)break;wj(35104,35076)|0}c[8796]=1;e=c[35196+(g<<3)>>2]|0;f=c[35196+(g<<3)+4>>2]|0;c[8798]=(g+1|0)%16|0;$i(35076)|0;i=+Za();Rb(35156,e,f,0,1)|0;Rb(35156,0,0,0,1)|0;j=+Za()-i;cj(35076)|0;h[4352]=j+ +h[4352];$i(35076)|0;lj(1024,6,b)}return 0}function nh(){var a=0,b=0,d=0,e=0,f=0,g=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0;a=l;l=l+16|0;b=a;d=a+4|0;c[d>>2]=0;e=Sb(35156,d)|0;a:do if(e){f=e;g=0;b:while(1){if(g|0){i=3;break}j=c[f>>2]|0;switch(j|0){case 258:{k=c[f+12>>2]|0;m=c[f+16>>2]|0;n=k;o=m;p=m>>>1;q=k>>>1;break}case 261:{k=c[f+12>>2]|0;m=c[f+16>>2]|0;n=k;o=m;p=m;q=k>>>1;break}case 262:{k=c[f+12>>2]|0;m=c[f+16>>2]|0;n=k;o=m;p=m;q=k;break}default:{i=8;break b}}Oa(c[f+48>>2]|0,c[f+64>>2]|0,c[f+52>>2]|0,c[f+68>>2]|0,c[f+56>>2]|0,c[f+72>>2]|0,n|0,o|0,q|0,p|0);f=Sb(35156,d)|0;if(!f){r=1;break a}else g=1}if((i|0)==3)while(1){i=0;si(31667)|0;if(!(Sb(35156,d)|0)){r=g;break}else i=3}else if((i|0)==8){c[b>>2]=j;ri(31717,b)|0;r=0;break}}else r=0;while(0);cj(35076)|0;s=+h[4352];h[4352]=0.0;c[8796]=0;rj(35104)|0;$i(35076)|0;ra(r|0,+s);l=a;return}function oh(){return 1}function ph(){Ua(0)}function qh(a,b){a=a|0;b=b|0;si(31762)|0;return 0}function rh(a,b){a=a|0;b=b|0;var d=0;cj(35076)|0;d=c[8797]|0;c[35196+(d<<3)>>2]=a;c[35196+(d<<3)+4>>2]=b;c[8797]=(d+1|0)%16|0;rj(35104)|0;$i(35076)|0;return 1}function sh(){return 35324}function th(){c[(Ra()|0)+188>>2]=35364;return}function uh(a){a=a|0;var b=0,d=0;b=l;l=l+16|0;d=b;c[d>>2]=Ah(c[a+60>>2]|0)|0;a=xh(Ma(6,d|0)|0)|0;l=b;return a|0}function vh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=l;l=l+48|0;f=e+16|0;g=e;h=e+32|0;i=a+28|0;j=c[i>>2]|0;c[h>>2]=j;k=a+20|0;m=(c[k>>2]|0)-j|0;c[h+4>>2]=m;c[h+8>>2]=b;c[h+12>>2]=d;b=m+d|0;m=a+60|0;c[g>>2]=c[m>>2];c[g+4>>2]=h;c[g+8>>2]=2;j=xh(kb(146,g|0)|0)|0;a:do if((b|0)!=(j|0)){g=j;n=h;o=2;p=b;while(1){if((g|0)<0)break;p=p-g|0;q=c[n+4>>2]|0;r=g>>>0>q>>>0;s=r?n+8|0:n;t=(r<<31>>31)+o|0;u=g-(r?q:0)|0;c[s>>2]=(c[s>>2]|0)+u;q=s+4|0;c[q>>2]=(c[q>>2]|0)-u;c[f>>2]=c[m>>2];c[f+4>>2]=s;c[f+8>>2]=t;g=xh(kb(146,f|0)|0)|0;if((p|0)==(g|0)){v=3;break a}else{n=s;o=t}}c[a+16>>2]=0;c[i>>2]=0;c[k>>2]=0;c[a>>2]=c[a>>2]|32;if((o|0)==2)w=0;else w=d-(c[n+4>>2]|0)|0}else v=3;while(0);if((v|0)==3){v=c[a+44>>2]|0;c[a+16>>2]=v+(c[a+48>>2]|0);c[i>>2]=v;c[k>>2]=v;w=d}l=e;return w|0}function wh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=l;l=l+32|0;f=e;g=e+20|0;c[f>>2]=c[a+60>>2];c[f+4>>2]=0;c[f+8>>2]=b;c[f+12>>2]=g;c[f+16>>2]=d;if((xh(hb(140,f|0)|0)|0)<0){c[g>>2]=-1;h=-1}else h=c[g>>2]|0;l=e;return h|0}function xh(a){a=a|0;var b=0;if(a>>>0>4294963200){c[(yh()|0)>>2]=0-a;b=-1}else b=a;return b|0}function yh(){return (zh()|0)+64|0}function zh(){return Ra()|0}function Ah(a){a=a|0;return a|0}function Bh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=l;l=l+32|0;g=f;c[b+36>>2]=6;if((c[b>>2]&64|0)==0?(c[g>>2]=c[b+60>>2],c[g+4>>2]=21523,c[g+8>>2]=f+16,Va(54,g|0)|0):0)a[b+75>>0]=-1;g=vh(b,d,e)|0;l=f;return g|0}function Ch(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=a[b>>0]|0;e=a[c>>0]|0;if(d<<24>>24==0?1:d<<24>>24!=e<<24>>24){f=e;g=d}else{d=b;b=c;do{d=d+1|0;b=b+1|0;c=a[d>>0]|0;e=a[b>>0]|0}while(!(c<<24>>24==0?1:c<<24>>24!=e<<24>>24));f=e;g=c}return (g&255)-(f&255)|0}function Dh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0;g=l;l=l+128|0;h=g+124|0;i=g;j=i;k=21372;m=j+124|0;do{c[j>>2]=c[k>>2];j=j+4|0;k=k+4|0}while((j|0)<(m|0));if((d+-1|0)>>>0>2147483646)if(!d){n=1;o=h;p=4}else{c[(yh()|0)>>2]=75;q=-1}else{n=d;o=b;p=4}if((p|0)==4){p=-2-o|0;b=n>>>0>p>>>0?p:n;c[i+48>>2]=b;n=i+20|0;c[n>>2]=o;c[i+44>>2]=o;p=o+b|0;o=i+16|0;c[o>>2]=p;c[i+28>>2]=p;p=Eh(i,e,f)|0;if(!b)q=p;else{b=c[n>>2]|0;a[b+(((b|0)==(c[o>>2]|0))<<31>>31)>>0]=0;q=p}}l=g;return q|0}function Eh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;f=l;l=l+224|0;g=f+120|0;h=f+80|0;i=f;j=f+136|0;k=h;m=k+40|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(m|0));c[g>>2]=c[e>>2];if((Fh(0,d,g,i,h)|0)<0)n=-1;else{if((mb(c,b+76>>2)|0)>-1)o=Gh(b)|0;else o=0;e=c[b>>2]|0;k=e&32;if((a[b+74>>0]|0)<1)c[b>>2]=e&-33;e=b+48|0;if(!(c[e>>2]|0)){m=b+44|0;p=c[m>>2]|0;c[m>>2]=j;q=b+28|0;c[q>>2]=j;r=b+20|0;c[r>>2]=j;c[e>>2]=80;s=b+16|0;c[s>>2]=j+80;j=Fh(b,d,g,i,h)|0;if(!p)t=j;else{wb[c[b+36>>2]&7](b,0,0)|0;u=(c[r>>2]|0)==0?-1:j;c[m>>2]=p;c[e>>2]=0;c[s>>2]=0;c[q>>2]=0;c[r>>2]=0;t=u}}else t=Fh(b,d,g,i,h)|0;h=c[b>>2]|0;c[b>>2]=h|k;if(o|0)Hh(b);n=(h&32|0)==0?t:-1}l=f;return n|0}
function ie(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;d=b[a+2>>1]|0;e=b[a+62>>1]|0;f=((d*804|0)+8192+(S(e,-16364)|0)|0)>>>14;g=b[a+34>>1]|0;h=b[a+30>>1]|0;i=((g*12140|0)+8192+(S(h,-11003)|0)|0)>>>14;j=b[a+18>>1]|0;k=b[a+46>>1]|0;l=((j*7005|0)+8192+(S(k,-14811)|0)|0)>>>14;m=b[a+50>>1]|0;n=b[a+14>>1]|0;o=((m*15426|0)+8192+(S(n,-5520)|0)|0)>>>14;p=b[a+10>>1]|0;q=b[a+54>>1]|0;r=((p*3981|0)+8192+(S(q,-15893)|0)|0)>>>14;s=b[a+42>>1]|0;t=b[a+22>>1]|0;u=((s*14053|0)+8192+(S(t,-8423)|0)|0)>>>14;v=b[a+26>>1]|0;w=b[a+38>>1]|0;x=((v*9760|0)+8192+(S(w,-13160)|0)|0)>>>14;y=b[a+58>>1]|0;z=b[a+6>>1]|0;A=b[a+4>>1]|0;B=b[a+60>>1]|0;C=b[a+36>>1]|0;D=b[a+28>>1]|0;E=b[a+20>>1]|0;F=b[a+44>>1]|0;G=b[a+52>>1]|0;H=b[a+12>>1]|0;I=f<<16>>16;f=i<<16>>16;i=l<<16>>16;l=o<<16>>16;o=r<<16>>16;r=u<<16>>16;u=x<<16>>16;x=((y*16207|0)+8192+(S(z,-2404)|0)|0)>>>14<<16>>16;J=((y*2404|0)+8192+(z*16207|0)|0)>>>14<<16>>16;z=((v*13160|0)+8192+(w*9760|0)|0)>>>14<<16>>16;w=((s*8423|0)+8192+(t*14053|0)|0)>>>14<<16>>16;t=((p*15893|0)+8192+(q*3981|0)|0)>>>14<<16>>16;q=((m*5520|0)+8192+(n*15426|0)|0)>>>14<<16>>16;n=((j*14811|0)+8192+(k*7005|0)|0)>>>14<<16>>16;k=((g*11003|0)+8192+(h*12140|0)|0)>>>14<<16>>16;h=((d*16364|0)+8192+(e*804|0)|0)>>>14<<16>>16;e=b[a+8>>1]|0;d=b[a+56>>1]|0;g=b[a+40>>1]|0;j=b[a+24>>1]|0;m=((A*1606|0)+8192+(S(B,-16305)|0)|0)>>>14<<16>>16;p=((C*12665|0)+8192+(S(D,-10394)|0)|0)>>>14<<16>>16;s=((E*7723|0)+8192+(S(F,-14449)|0)|0)>>>14<<16>>16;v=((G*15679|0)+8192+(S(H,-4756)|0)|0)>>>14<<16>>16;y=((G*4756|0)+8192+(H*15679|0)|0)>>>14<<16>>16;H=((E*14449|0)+8192+(F*7723|0)|0)>>>14<<16>>16;F=((C*10394|0)+8192+(D*12665|0)|0)>>>14<<16>>16;D=((A*16305|0)+8192+(B*1606|0)|0)>>>14<<16>>16;B=I-f<<16>>16;A=h-k<<16>>16;C=l-i<<16>>16;E=q-n<<16>>16;G=o-r<<16>>16;K=t-w<<16>>16;L=x-u<<16>>16;M=J-z<<16>>16;N=b[a>>1]|0;O=b[a+32>>1]|0;P=b[a+16>>1]|0;Q=b[a+48>>1]|0;a=((e*3196|0)+8192+(S(d,-16069)|0)|0)>>>14<<16>>16;R=((g*13623|0)+8192+(S(j,-9102)|0)|0)>>>14<<16>>16;T=((g*9102|0)+8192+(j*13623|0)|0)>>>14<<16>>16;j=((e*16069|0)+8192+(d*3196|0)|0)>>>14<<16>>16;d=m-p<<16>>16;e=D-F<<16>>16;g=v-s<<16>>16;U=y-H<<16>>16;V=f+I<<16>>16;I=l+i<<16>>16;i=((A*3196|0)+8192+(S(B,-16069)|0)|0)>>>14<<16>>16;l=((S(E,-16069)|0)+8192+(S(C,-3196)|0)|0)>>>14<<16>>16;f=r+o<<16>>16;o=x+u<<16>>16;u=((K*13623|0)+8192+(S(G,-9102)|0)|0)>>>14<<16>>16;x=((S(M,-9102)|0)+8192+(S(L,-13623)|0)|0)>>>14<<16>>16;r=J+z<<16>>16;z=w+t<<16>>16;t=((M*13623|0)+8192+(S(L,-9102)|0)|0)>>>14<<16>>16;L=((K*9102|0)+8192+(G*13623|0)|0)>>>14<<16>>16;G=q+n<<16>>16;n=k+h<<16>>16;h=((E*3196|0)+8192+(S(C,-16069)|0)|0)>>>14<<16>>16;C=((A*16069|0)+8192+(B*3196|0)|0)>>>14<<16>>16;B=(((O+N|0)*11585|0)+8192|0)>>>14<<16>>16;A=((P*15137|0)+8192+(Q*6270|0)|0)>>>14<<16>>16;E=(((N-O|0)*11585|0)+8192|0)>>>14<<16>>16;O=((P*6270|0)+8192+(S(Q,-15137)|0)|0)>>>14<<16>>16;Q=j-T<<16>>16;P=a-R<<16>>16;N=m+p<<16>>16;p=s+v<<16>>16;v=((e*6270|0)+8192+(S(d,-15137)|0)|0)>>>14<<16>>16;s=((S(U,-15137)|0)+8192+(S(g,-6270)|0)|0)>>>14<<16>>16;m=H+y<<16>>16;y=D+F<<16>>16;F=((U*6270|0)+8192+(S(g,-15137)|0)|0)>>>14<<16>>16;g=((e*15137|0)+8192+(d*6270|0)|0)>>>14<<16>>16;d=i-l<<16>>16;e=C-h<<16>>16;U=V-I<<16>>16;D=n-G<<16>>16;H=o-f<<16>>16;k=r-z<<16>>16;q=x-u<<16>>16;K=t-L<<16>>16;M=A+B<<16>>16;w=j+T<<16>>16;T=O+E<<16>>16;j=(((P+Q|0)*11585|0)+8192|0)>>>14<<16>>16;J=E-O<<16>>16;O=(((Q-P|0)*11585|0)+8192|0)>>>14<<16>>16;P=B-A<<16>>16;A=a+R<<16>>16;R=v-s<<16>>16;a=g-F<<16>>16;B=N-p<<16>>16;Q=y-m<<16>>16;E=I+V<<16>>16;V=o+f<<16>>16;f=l+i<<16>>16;i=x+u<<16>>16;u=((e*6270|0)+8192+(S(d,-15137)|0)|0)>>>14<<16>>16;x=((S(K,-15137)|0)+8192+(S(q,-6270)|0)|0)>>>14<<16>>16;l=((D*6270|0)+8192+(S(U,-15137)|0)|0)>>>14<<16>>16;o=((S(k,-15137)|0)+8192+(S(H,-6270)|0)|0)>>>14<<16>>16;I=r+z<<16>>16;z=G+n<<16>>16;n=t+L<<16>>16;L=h+C<<16>>16;C=((K*6270|0)+8192+(S(q,-15137)|0)|0)>>>14<<16>>16;q=((e*15137|0)+8192+(d*6270|0)|0)>>>14<<16>>16;d=((k*6270|0)+8192+(S(H,-15137)|0)|0)>>>14<<16>>16;H=((D*15137|0)+8192+(U*6270|0)|0)>>>14<<16>>16;U=w+M<<16>>16;D=y+m<<16>>16;m=j+T<<16>>16;y=g+F<<16>>16;F=O+J<<16>>16;g=(((R+a|0)*11585|0)+8192|0)>>>14<<16>>16;k=A+P<<16>>16;e=(((B+Q|0)*11585|0)+8192|0)>>>14<<16>>16;K=P-A<<16>>16;A=(((Q-B|0)*11585|0)+8192|0)>>>14<<16>>16;B=J-O<<16>>16;O=(((a-R|0)*11585|0)+8192|0)>>>14<<16>>16;R=T-j<<16>>16;j=v+s<<16>>16;s=M-w<<16>>16;w=N+p<<16>>16;p=l-o<<16>>16;N=H-d<<16>>16;M=u-x<<16>>16;v=q-C<<16>>16;T=f-i<<16>>16;a=L-n<<16>>16;J=E-V<<16>>16;Q=z-I<<16>>16;P=D+U<<16>>16;h=I+z<<16>>16;b[c>>1]=h+P;z=y+m<<16>>16;I=n+L<<16>>16;b[c+2>>1]=I+z;L=g+F<<16>>16;n=C+q<<16>>16;b[c+4>>1]=n+L;q=e+k<<16>>16;C=d+H<<16>>16;b[c+6>>1]=C+q;H=A+K<<16>>16;d=(((p+N|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+8>>1]=d+H;t=O+B<<16>>16;G=(((M+v|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+10>>1]=G+t;r=j+R<<16>>16;W=(((T+a|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+12>>1]=W+r;X=w+s<<16>>16;Y=(((J+Q|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+14>>1]=Y+X;Z=s-w<<16>>16;w=(((Q-J|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+16>>1]=w+Z;J=R-j<<16>>16;j=(((a-T|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+18>>1]=j+J;T=B-O<<16>>16;O=(((v-M|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+20>>1]=O+T;M=K-A<<16>>16;A=(((N-p|0)*11585|0)+8192|0)>>>14<<16>>16;b[c+22>>1]=A+M;p=k-e<<16>>16;e=o+l<<16>>16;b[c+24>>1]=e+p;l=F-g<<16>>16;g=x+u<<16>>16;b[c+26>>1]=g+l;u=m-y<<16>>16;y=i+f<<16>>16;b[c+28>>1]=y+u;f=U-D<<16>>16;D=V+E<<16>>16;b[c+30>>1]=D+f;b[c+32>>1]=f-D;b[c+34>>1]=u-y;b[c+36>>1]=l-g;b[c+38>>1]=p-e;b[c+40>>1]=M-A;b[c+42>>1]=T-O;b[c+44>>1]=J-j;b[c+46>>1]=Z-w;b[c+48>>1]=X-Y;b[c+50>>1]=r-W;b[c+52>>1]=t-G;b[c+54>>1]=H-d;b[c+56>>1]=q-C;b[c+58>>1]=L-n;b[c+60>>1]=z-I;b[c+62>>1]=P-h;return}function je(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;g=l;l=l+2208|0;h=g+160|0;i=g+96|0;j=g+32|0;k=g;m=k+2|0;n=k+4|0;o=k+6|0;p=k+8|0;q=k+10|0;r=k+12|0;s=k+14|0;t=k+16|0;u=k+18|0;v=k+20|0;w=k+22|0;x=k+24|0;y=k+26|0;z=k+28|0;A=k+30|0;B=0;C=c;c=h;while(1){D=0;do{E=D<<1;b[k+(D<<1)>>1]=b[C+((E|1)<<1)>>1]|b[C+(E<<1)>>1];D=D+1|0}while((D|0)!=16);D=b[m>>1]|b[k>>1];E=b[o>>1]|b[n>>1];F=b[q>>1]|b[p>>1];G=b[s>>1]|b[r>>1];H=b[u>>1]|b[t>>1];b[p>>1]=H;I=b[w>>1]|b[v>>1];b[q>>1]=I;J=b[y>>1]|b[x>>1];b[r>>1]=J;K=b[A>>1]|b[z>>1];b[s>>1]=K;L=I|H;b[n>>1]=L;H=K|J;b[o>>1]=H;J=G|F|(E|D);b[k>>1]=J;D=H|L;b[m>>1]=D;if(!((D|J)<<16>>16)){J=c;D=J+64|0;do{b[J>>1]=0;J=J+2|0}while((J|0)<(D|0))}else ie(C,c);B=B+1|0;if((B|0)==32)break;else{C=C+64|0;c=c+64|0}}c=0;do{C=0;do{b[i+(C<<1)>>1]=b[h+((C<<5)+c<<1)>>1]|0;C=C+1|0}while((C|0)!=32);ie(i,j);C=0;do{B=e+((S(C,f)|0)+c)|0;m=((b[j+(C<<1)>>1]|0)+32>>6)+(d[B>>0]|0)|0;a[B>>0]=(m|0)>255?-1:((m|0)>0?m:0)&255;C=C+1|0}while((C|0)!=32);c=c+1|0}while((c|0)!=32);l=g;return}function ke(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0;g=l;l=l+2176|0;h=g+128|0;i=g+64|0;j=g;Jj(h|0,0,2048)|0;ie(c,h);ie(c+64|0,h+64|0);ie(c+128|0,h+128|0);ie(c+192|0,h+192|0);ie(c+256|0,h+256|0);ie(c+320|0,h+320|0);ie(c+384|0,h+384|0);ie(c+448|0,h+448|0);ie(c+512|0,h+512|0);ie(c+576|0,h+576|0);ie(c+640|0,h+640|0);ie(c+704|0,h+704|0);ie(c+768|0,h+768|0);ie(c+832|0,h+832|0);ie(c+896|0,h+896|0);ie(c+960|0,h+960|0);c=0;do{k=0;do{b[i+(k<<1)>>1]=b[h+((k<<5)+c<<1)>>1]|0;k=k+1|0}while((k|0)!=32);ie(i,j);k=0;do{m=e+((S(k,f)|0)+c)|0;n=((b[j+(k<<1)>>1]|0)+32>>6)+(d[m>>0]|0)|0;a[m>>0]=(n|0)>255?-1:((n|0)>0?n:0)&255;k=k+1|0}while((k|0)!=32);c=c+1|0}while((c|0)!=32);l=g;return}function le(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0;g=l;l=l+2176|0;h=g+128|0;i=g+64|0;j=g;Jj(h|0,0,2048)|0;ie(c,h);ie(c+64|0,h+64|0);ie(c+128|0,h+128|0);ie(c+192|0,h+192|0);ie(c+256|0,h+256|0);ie(c+320|0,h+320|0);ie(c+384|0,h+384|0);ie(c+448|0,h+448|0);c=0;do{k=0;do{b[i+(k<<1)>>1]=b[h+((k<<5)+c<<1)>>1]|0;k=k+1|0}while((k|0)!=32);ie(i,j);k=0;do{m=e+((S(k,f)|0)+c)|0;n=((b[j+(k<<1)>>1]|0)+32>>6)+(d[m>>0]|0)|0;a[m>>0]=(n|0)>255?-1:((n|0)>0?n:0)&255;k=k+1|0}while((k|0)!=32);c=c+1|0}while((c|0)!=32);l=g;return}function me(c,e,f){c=c|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;g=(((((((b[c>>1]|0)*11585|0)+8192|0)>>>14<<16>>16)*11585|0)+8192|0)>>>14<<16>>16)+32>>6;c=e;e=0;while(1){h=0;do{i=c+h|0;j=(d[i>>0]|0)+g|0;a[i>>0]=(j|0)>255?-1:((j|0)>0?j:0)&255;h=h+1|0}while((h|0)!=32);e=e+1|0;if((e|0)==32)break;else c=c+f|0}return}function ne(){vj(34828,2)|0;return}function oe(){return}function pe(a){a=a|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[a+20>>2]=0;return}function qe(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=a+20|0;c[b>>2]=0;d=a+4|0;switch(c[d>>2]|0){case 0:{e=Xb(1,80)|0;c[a>>2]=e;if(!e){f=0;g=f&1;return g|0}do if(!(Aj(e,0)|0)){h=(qj((c[a>>2]|0)+28|0,0)|0)==0;if(!h)break;cj(c[a>>2]|0)|0;if(Xa((c[a>>2]|0)+76|0,0,5,a|0)|0){$i(c[a>>2]|0)|0;pj((c[a>>2]|0)+28|0)|0;break}c[d>>2]=1;$i(c[a>>2]|0)|0;f=1;g=f&1;return g|0}while(0);Yb(c[a>>2]|0);c[a>>2]=0;f=0;g=f&1;return g|0}case 1:{f=1;g=f&1;return g|0}default:{e=c[a>>2]|0;if(!e){f=1;g=f&1;return g|0}cj(e)|0;if((c[d>>2]|0)>>>0>=2)do{e=c[a>>2]|0;wj(e+28|0,e)|0}while((c[d>>2]|0)!=1);$i(c[a>>2]|0)|0;f=(c[b>>2]|0)==0;g=f&1;return g|0}}return 0}function re(a){a=a|0;var b=0,d=0;b=c[a>>2]|0;if(b|0){cj(b)|0;b=a+4|0;if((c[b>>2]|0)>>>0>=2)do{d=c[a>>2]|0;wj(d+28|0,d)|0}while((c[b>>2]|0)!=1);$i(c[a>>2]|0)|0}return (c[a+20>>2]|0)==0|0}function se(a){a=a|0;var b=0,d=0,e=0;b=c[a>>2]|0;if(!b)return;cj(b)|0;b=a+4|0;switch(c[b>>2]|0){case 0:break;case 1:{d=4;break}default:{do{e=c[a>>2]|0;wj(e+28|0,e)|0}while((c[b>>2]|0)!=1);d=4}}if((d|0)==4){c[b>>2]=2;rj((c[a>>2]|0)+28|0)|0}$i(c[a>>2]|0)|0;return}function te(a){a=a|0;var b=0,d=0;b=c[a+8>>2]|0;if(!b)return;d=(Gb[b&31](c[a+12>>2]|0,c[a+16>>2]|0)|0)==0&1;b=a+20|0;c[b>>2]=d|c[b>>2];return}function ue(a){a=a|0;var b=0,d=0,e=0;b=c[a>>2]|0;if(!b)return;cj(b)|0;b=a+4|0;switch(c[b>>2]|0){case 0:break;case 1:{d=4;break}default:{do{e=c[a>>2]|0;wj(e+28|0,e)|0}while((c[b>>2]|0)!=1);d=4}}if((d|0)==4){c[b>>2]=0;rj((c[a>>2]|0)+28|0)|0}$i(c[a>>2]|0)|0;Sa(c[(c[a>>2]|0)+76>>2]|0,0)|0;pj((c[a>>2]|0)+28|0)|0;Yb(c[a>>2]|0);c[a>>2]=0;return}function ve(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=a+4|0;d=a+8|0;e=a+12|0;f=a+16|0;g=a+20|0;a:while(1){cj(c[a>>2]|0)|0;b:while(1){switch(c[b>>2]|0){case 0:{break a;break}case 2:{break b;break}case 1:break;default:{h=8;break b}}i=c[a>>2]|0;wj(i+28|0,i)|0}if((h|0)==8){h=0;rj((c[a>>2]|0)+28|0)|0;$i(c[a>>2]|0)|0;continue}i=c[d>>2]|0;if(i|0){j=(Gb[i&31](c[e>>2]|0,c[f>>2]|0)|0)==0&1;c[g>>2]=j|c[g>>2]}c[b>>2]=1;rj((c[a>>2]|0)+28|0)|0;$i(c[a>>2]|0)|0}rj((c[a>>2]|0)+28|0)|0;$i(c[a>>2]|0)|0;return 0}function we(){return 19464}function xe(a){a=a|0;cj(a)|0;return}function ye(a){a=a|0;$i(a)|0;return}function ze(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=b+7>>3;c[a+608>>2]=e;b=d+7>>3;c[a+600>>2]=b;c[a+612>>2]=e+8;d=e+1>>1;c[a+604>>2]=d;e=b+1>>1;c[a+596>>2]=e;c[a+592>>2]=S(e,d)|0;return}function Ae(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=a+36|0;d=a+28|0;e=0;do{f=a+40+(e*160|0)|0;if((c[f>>2]|0)>0?(g=a+40+(e*160|0)+16|0,c[g>>2]|0):0){Gb[c[b>>2]&31](c[d>>2]|0,g)|0;c[f>>2]=0}f=a+40+(e*160|0)+4|0;Yb(c[f>>2]|0);c[f>>2]=0;Zb(a+40+(e*160|0)+28|0)|0;e=e+1|0}while((e|0)!=15);return}function Be(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=b+7>>3;b=a+608|0;c[b>>2]=e;f=d+7>>3;d=a+600|0;c[d>>2]=f;g=e+8|0;h=a+612|0;c[h>>2]=g;i=e+1>>1;j=a+604|0;c[j>>2]=i;k=f+1>>1;l=a+596|0;c[l>>2]=k;m=a+592|0;c[m>>2]=S(k,i)|0;i=S(f+8|0,g)|0;if((c[a+700>>2]|0)<(i|0)){zb[c[a+724>>2]&31](a);if(!(Gb[c[a+720>>2]&31](a,i)|0)){n=c[b>>2]|0;o=c[d>>2]|0;p=4}}else{n=e;o=f;p=4}do if((p|0)==4){f=a+776|0;if((c[f>>2]|0)<(S(n,o)|0)){e=a+760|0;Yb(c[e>>2]|0);c[e>>2]=0;i=a+764|0;Yb(c[i>>2]|0);c[i>>2]=0;g=a+772|0;c[g>>2]=0;k=a+4096|0;if(!(c[k>>2]|0))c[a+768>>2]=0;q=S(c[b>>2]|0,c[d>>2]|0)|0;r=Xb(q,1)|0;c[e>>2]=r;if(!r)break;r=Xb(q,1)|0;c[i>>2]=r;if(!r)break;c[f>>2]=q;c[a+752>>2]=0;c[a+756>>2]=1;c[g>>2]=c[a+760>>2];if(!(c[k>>2]|0))c[a+768>>2]=r}r=a+17416|0;if((c[r>>2]|0)<(c[b>>2]|0)){k=a+17412|0;Yb(c[k>>2]|0);g=Xb(((c[b>>2]|0)+7&-8)*6|0,1)|0;c[k>>2]=g;if(!g)break;g=a+17408|0;Yb(c[g>>2]|0);k=Xb((c[b>>2]|0)+7&-8,1)|0;c[g>>2]=k;if(!k)break;c[r>>2]=c[b>>2]}r=a+3972|0;Yb(c[r>>2]|0);k=(c[b>>2]|0)+7>>3;c[a+3976>>2]=k;g=Xb(S((c[d>>2]|0)+7>>3,k)|0,160)|0;c[r>>2]=g;if(g|0){s=0;return s|0}}while(0);c[b>>2]=0;c[d>>2]=0;c[h>>2]=8;c[j>>2]=0;c[l>>2]=0;c[m>>2]=0;zb[c[a+724>>2]&31](a);m=a+760|0;Yb(c[m>>2]|0);c[m>>2]=0;m=a+764|0;Yb(c[m>>2]|0);c[m>>2]=0;c[a+772>>2]=0;if(!(c[a+4096>>2]|0))c[a+768>>2]=0;m=a+17412|0;Yb(c[m>>2]|0);c[m>>2]=0;m=a+17408|0;Yb(c[m>>2]|0);c[m>>2]=0;m=a+3972|0;Yb(c[m>>2]|0);c[m>>2]=0;s=1;return s|0}function Ce(a){a=a|0;var b=0;zb[c[a+724>>2]&31](a);b=a+760|0;Yb(c[b>>2]|0);c[b>>2]=0;b=a+764|0;Yb(c[b>>2]|0);c[b>>2]=0;c[a+772>>2]=0;if(!(c[a+4096>>2]|0))c[a+768>>2]=0;b=a+17412|0;Yb(c[b>>2]|0);c[b>>2]=0;b=a+17408|0;Yb(c[b>>2]|0);c[b>>2]=0;b=a+3972|0;Yb(c[b>>2]|0);c[b>>2]=0;b=a+4108|0;Yb(c[b>>2]|0);c[b>>2]=0;b=a+4112|0;Yb(c[b>>2]|0);c[b>>2]=0;return}function De(a){a=a|0;var b=0;zb[c[a+728>>2]&31](a);b=c[a+768>>2]|0;if(!b)return;if(c[a+4096>>2]|0)return;Jj(b|0,0,S(c[a+608>>2]|0,c[a+600>>2]|0)|0)|0;return}function Ee(a){a=a|0;var b=0,d=0,e=0,f=0;b=a+752|0;d=c[b>>2]|0;e=a+756|0;f=c[e>>2]|0;c[b>>2]=f;c[e>>2]=d;c[a+772>>2]=c[a+760+(f<<2)>>2];c[a+768>>2]=c[a+760+(d<<2)>>2];return}function Fe(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;if((e|2|0)!=2){f=a[b+20+((e+-1|0)*12|0)>>0]|0;return f|0}if(!c){f=0;return f|0}if((a[c+8>>0]|0)>0){f=0;return f|0}f=a[((d[c>>0]|0)<3?c+20+((e+1|0)*12|0)|0:c+1|0)>>0]|0;return f|0}function Ge(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;if((e|1|0)!=1){f=a[b+20+((e+-2|0)*12|0)>>0]|0;return f|0}if(!c){f=0;return f|0}if((a[c+8>>0]|0)>0){f=0;return f|0}f=a[((d[c>>0]|0)<3?c+20+((e+2|0)*12|0)|0:c+1|0)>>0]|0;return f|0}function He(a,b,d){a=a|0;b=b|0;d=d|0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+92>>2]=b;c[a+96>>2]=d;c[a+180>>2]=b;c[a+184>>2]=d;return}function Ie(a){a=a|0;var b=0;b=a+4108|0;Qj((c[b>>2]|0)+174|0,24654,432)|0;Qj((c[b>>2]|0)+606|0,25086,432)|0;Qj((c[b>>2]|0)+1038|0,25518,432)|0;Qj((c[b>>2]|0)+1470|0,25950,432)|0;return}function Je(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;if((c[b+564>>2]|0)!=0?(a[b+580>>0]|0)==0:0)d=(c[b+560>>2]|0)==0?128:112;else d=112;e=b+4112|0;f=b+4116|0;g=b+4108|0;h=0;do{i=c[e>>2]|0;j=c[f>>2]|0;k=c[g>>2]|0;l=0;do{m=0;do{n=0;do{o=(n|0)==0?3:6;p=0;do{q=c[b+4936+(h*2304|0)+(l*1152|0)+(m*576|0)+(n*96|0)+(p<<4)>>2]|0;r=c[b+4936+(h*2304|0)+(l*1152|0)+(m*576|0)+(n*96|0)+(p<<4)+4>>2]|0;s=c[b+14152+(h*576|0)+(l*288|0)+(m*144|0)+(n*24|0)+(p<<2)>>2]|0;t=(c[b+4936+(h*2304|0)+(l*1152|0)+(m*576|0)+(n*96|0)+(p<<4)+8>>2]|0)+r|0;u=a[i+(j*2044|0)+174+(h*432|0)+(l*216|0)+(m*108|0)+(n*18|0)+(p*3|0)>>0]|0;if(!s)v=128;else{w=Mj(c[b+4936+(h*2304|0)+(l*1152|0)+(m*576|0)+(n*96|0)+(p<<4)+12>>2]|0,0,8)|0;x=Kj(w|0,D|0,s>>>1|0,0)|0;w=Tj(x|0,D|0,s|0,0)|0;v=((255-w|0)>>>23|w)&255|(w|0)==0}w=((S(s>>>0<24?s:24,d)|0)>>>0)/24|0;a[k+174+(h*432|0)+(l*216|0)+(m*108|0)+(n*18|0)+(p*3|0)>>0]=((S(256-w|0,u&255)|0)+128+(S(v,w)|0)|0)>>>8;w=a[i+(j*2044|0)+174+(h*432|0)+(l*216|0)+(m*108|0)+(n*18|0)+(p*3|0)+1>>0]|0;u=t+q|0;if(!u)y=128;else{s=Mj(q|0,0,8)|0;q=Kj(u>>>1|0,0,s|0,D|0)|0;s=Tj(q|0,D|0,u|0,0)|0;y=((255-s|0)>>>23|s)&255|(s|0)==0}s=((S(u>>>0<24?u:24,d)|0)>>>0)/24|0;a[k+174+(h*432|0)+(l*216|0)+(m*108|0)+(n*18|0)+(p*3|0)+1>>0]=((S(w&255,256-s|0)|0)+128+(S(y,s)|0)|0)>>>8;s=a[i+(j*2044|0)+174+(h*432|0)+(l*216|0)+(m*108|0)+(n*18|0)+(p*3|0)+2>>0]|0;if(!t)z=128;else{w=Mj(r|0,0,8)|0;r=Kj(t>>>1|0,0,w|0,D|0)|0;w=Tj(r|0,D|0,t|0,0)|0;z=((255-w|0)>>>23|w)&255|(w|0)==0}w=((S(t>>>0<24?t:24,d)|0)>>>0)/24|0;a[k+174+(h*432|0)+(l*216|0)+(m*108|0)+(n*18|0)+(p*3|0)+2>>0]=((S(s&255,256-w|0)|0)+128+(S(z,w)|0)|0)>>>8;p=p+1|0}while((p|0)<(o|0));n=n+1|0}while((n|0)!=6);m=m+1|0}while((m|0)!=2);l=l+1|0}while((l|0)!=2);h=h+1|0}while((h|0)!=4);return}function Ke(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;d=c[b+4108>>2]|0;e=c[b+4112>>2]|0;f=c[b+4116>>2]|0;g=a[e+(f*2044|0)+1931>>0]|0;h=c[b+16616>>2]|0;i=(c[b+16620>>2]|0)+h|0;if(!i)j=g;else{k=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(h|0,0,8)|0;h=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(h|0,D|0,i|0,0)|0;j=((S(256-k|0,g&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,k)|0)|0)>>>8&255}a[d+1931>>0]=j;j=a[e+(f*2044|0)+1932>>0]|0;k=c[b+16624>>2]|0;l=(c[b+16628>>2]|0)+k|0;if(!l)m=j;else{g=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(k|0,0,8)|0;k=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(k|0,D|0,l|0,0)|0;m=((S(256-g|0,j&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,g)|0)|0)>>>8&255}a[d+1932>>0]=m;m=a[e+(f*2044|0)+1933>>0]|0;g=c[b+16632>>2]|0;i=(c[b+16636>>2]|0)+g|0;if(!i)n=m;else{j=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(g|0,0,8)|0;g=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(g|0,D|0,i|0,0)|0;n=((S(256-j|0,m&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,j)|0)|0)>>>8&255}a[d+1933>>0]=n;n=a[e+(f*2044|0)+1934>>0]|0;j=c[b+16640>>2]|0;l=(c[b+16644>>2]|0)+j|0;if(!l)o=n;else{m=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(j|0,0,8)|0;j=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(j|0,D|0,l|0,0)|0;o=((S(256-m|0,n&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,m)|0)|0)>>>8&255}a[d+1934>>0]=o;o=a[e+(f*2044|0)+1935>>0]|0;m=c[b+16648>>2]|0;i=(c[b+16652>>2]|0)+m|0;if(!i)p=o;else{n=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(m|0,0,8)|0;m=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(m|0,D|0,i|0,0)|0;p=((S(256-n|0,o&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,n)|0)|0)>>>8&255}a[d+1935>>0]=p;p=a[e+(f*2044|0)+1936>>0]|0;n=c[b+16656>>2]|0;l=(c[b+16660>>2]|0)+n|0;if(!l)q=p;else{o=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(n|0,0,8)|0;n=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(n|0,D|0,l|0,0)|0;q=((S(256-o|0,p&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,o)|0)|0)>>>8&255}a[d+1936>>0]=q;q=a[e+(f*2044|0)+1937>>0]|0;o=c[b+16664>>2]|0;i=(c[b+16668>>2]|0)+o|0;if(!i)r=q;else{p=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(o|0,0,8)|0;o=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(o|0,D|0,i|0,0)|0;r=((S(256-p|0,q&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,p)|0)|0)>>>8&255}a[d+1937>>0]=r;r=a[e+(f*2044|0)+1938>>0]|0;p=c[b+16672>>2]|0;l=(c[b+16676>>2]|0)+p|0;if(!l)s=r;else{q=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(p|0,0,8)|0;p=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(p|0,D|0,l|0,0)|0;s=((S(256-q|0,r&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,q)|0)|0)>>>8&255}a[d+1938>>0]=s;s=a[e+(f*2044|0)+1939>>0]|0;q=c[b+16680>>2]|0;i=(c[b+16684>>2]|0)+q|0;if(!i)t=s;else{r=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(q|0,0,8)|0;q=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(q|0,D|0,i|0,0)|0;t=((S(256-r|0,s&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,r)|0)|0)>>>8&255}a[d+1939>>0]=t;t=a[e+(f*2044|0)+1950>>0]|0;r=c[b+16768>>2]|0;l=(c[b+16772>>2]|0)+r|0;if(!l)u=t;else{s=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(r|0,0,8)|0;r=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(r|0,D|0,l|0,0)|0;u=((S(256-s|0,t&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,s)|0)|0)>>>8&255}a[d+1950>>0]=u;u=a[e+(f*2044|0)+1951>>0]|0;s=c[b+16776>>2]|0;i=(c[b+16780>>2]|0)+s|0;if(!i)v=u;else{t=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(s|0,0,8)|0;s=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(s|0,D|0,i|0,0)|0;v=((S(256-t|0,u&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,t)|0)|0)>>>8&255}a[d+1951>>0]=v;v=a[e+(f*2044|0)+1952>>0]|0;t=c[b+16784>>2]|0;l=(c[b+16788>>2]|0)+t|0;if(!l)w=v;else{u=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(t|0,0,8)|0;t=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(t|0,D|0,l|0,0)|0;w=((S(256-u|0,v&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,u)|0)|0)>>>8&255}a[d+1952>>0]=w;w=a[e+(f*2044|0)+1953>>0]|0;u=c[b+16792>>2]|0;i=(c[b+16796>>2]|0)+u|0;if(!i)x=w;else{v=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(u|0,0,8)|0;u=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(u|0,D|0,i|0,0)|0;x=((S(256-v|0,w&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,v)|0)|0)>>>8&255}a[d+1953>>0]=x;x=a[e+(f*2044|0)+1954>>0]|0;v=c[b+16800>>2]|0;l=(c[b+16804>>2]|0)+v|0;if(!l)y=x;else{w=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(v|0,0,8)|0;v=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(v|0,D|0,l|0,0)|0;y=((S(256-w|0,x&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,w)|0)|0)>>>8&255}a[d+1954>>0]=y;y=a[e+(f*2044|0)+1940>>0]|0;w=c[b+16688>>2]|0;i=(c[b+16692>>2]|0)+w|0;if(!i)z=y;else{x=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(w|0,0,8)|0;w=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(w|0,D|0,i|0,0)|0;z=((S(256-x|0,y&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,x)|0)|0)>>>8&255}a[d+1940>>0]=z;z=a[e+(f*2044|0)+1941>>0]|0;x=c[b+16696>>2]|0;l=(c[b+16700>>2]|0)+x|0;if(!l)A=z;else{y=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(x|0,0,8)|0;x=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(x|0,D|0,l|0,0)|0;A=((S(256-y|0,z&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,y)|0)|0)>>>8&255}a[d+1941>>0]=A;A=a[e+(f*2044|0)+1942>>0]|0;y=c[b+16704>>2]|0;i=(c[b+16708>>2]|0)+y|0;if(!i)B=A;else{z=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(y|0,0,8)|0;y=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(y|0,D|0,i|0,0)|0;B=((S(256-z|0,A&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,z)|0)|0)>>>8&255}a[d+1942>>0]=B;B=a[e+(f*2044|0)+1943>>0]|0;z=c[b+16712>>2]|0;l=(c[b+16716>>2]|0)+z|0;if(!l)C=B;else{A=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(z|0,0,8)|0;z=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(z|0,D|0,l|0,0)|0;C=((S(256-A|0,B&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,A)|0)|0)>>>8&255}a[d+1943>>0]=C;C=a[e+(f*2044|0)+1944>>0]|0;A=c[b+16720>>2]|0;i=(c[b+16724>>2]|0)+A|0;if(!i)E=C;else{B=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(A|0,0,8)|0;A=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(A|0,D|0,i|0,0)|0;E=((S(256-B|0,C&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,B)|0)|0)>>>8&255}a[d+1944>>0]=E;E=a[e+(f*2044|0)+1945>>0]|0;B=c[b+16728>>2]|0;l=(c[b+16732>>2]|0)+B|0;if(!l)F=E;else{C=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(B|0,0,8)|0;B=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(B|0,D|0,l|0,0)|0;F=((S(256-C|0,E&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,C)|0)|0)>>>8&255}a[d+1945>>0]=F;F=a[e+(f*2044|0)+1946>>0]|0;C=c[b+16736>>2]|0;i=(c[b+16740>>2]|0)+C|0;if(!i)G=F;else{E=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(C|0,0,8)|0;C=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(C|0,D|0,i|0,0)|0;G=((S(256-E|0,F&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,E)|0)|0)>>>8&255}a[d+1946>>0]=G;G=a[e+(f*2044|0)+1947>>0]|0;E=c[b+16744>>2]|0;l=(c[b+16748>>2]|0)+E|0;if(!l)H=G;else{F=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(E|0,0,8)|0;E=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(E|0,D|0,l|0,0)|0;H=((S(256-F|0,G&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,F)|0)|0)>>>8&255}a[d+1947>>0]=H;H=a[e+(f*2044|0)+1948>>0]|0;F=c[b+16752>>2]|0;i=(c[b+16756>>2]|0)+F|0;if(!i)I=H;else{G=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Mj(F|0,0,8)|0;F=Kj(i>>>1|0,0,l|0,D|0)|0;l=Tj(F|0,D|0,i|0,0)|0;I=((S(256-G|0,H&255)|0)+128+(S(((255-l|0)>>>23|l)&255|(l|0)==0,G)|0)|0)>>>8&255}a[d+1948>>0]=I;I=a[e+(f*2044|0)+1949>>0]|0;G=c[b+16760>>2]|0;l=(c[b+16764>>2]|0)+G|0;if(!l)J=I;else{H=c[19488+((l>>>0<20?l:20)<<2)>>2]|0;i=Mj(G|0,0,8)|0;G=Kj(l>>>1|0,0,i|0,D|0)|0;i=Tj(G|0,D|0,l|0,0)|0;J=((S(256-H|0,I&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,H)|0)|0)>>>8&255}a[d+1949>>0]=J;dc(27438,e+(f*2044|0)+1910|0,b+16504|0,d+1910|0);dc(27438,e+(f*2044|0)+1913|0,b+16520|0,d+1913|0);dc(27438,e+(f*2044|0)+1916|0,b+16536|0,d+1916|0);dc(27438,e+(f*2044|0)+1919|0,b+16552|0,d+1919|0);dc(27438,e+(f*2044|0)+1922|0,b+16568|0,d+1922|0);dc(27438,e+(f*2044|0)+1925|0,b+16584|0,d+1925|0);dc(27438,e+(f*2044|0)+1928|0,b+16600|0,d+1928|0);dc(27420,e+(f*2044|0)|0,b+4120|0,d);dc(27420,e+(f*2044|0)+9|0,b+4160|0,d+9|0);dc(27420,e+(f*2044|0)+18|0,b+4200|0,d+18|0);dc(27420,e+(f*2044|0)+27|0,b+4240|0,d+27|0);dc(27420,e+(f*2044|0)+36|0,b+4280|0,d+36|0);dc(27420,e+(f*2044|0)+45|0,b+4320|0,d+45|0);dc(27420,e+(f*2044|0)+54|0,b+4360|0,d+54|0);dc(27420,e+(f*2044|0)+63|0,b+4400|0,d+63|0);dc(27420,e+(f*2044|0)+72|0,b+4440|0,d+72|0);dc(27420,e+(f*2044|0)+81|0,b+4480|0,d+81|0);dc(27420,e+(f*2044|0)+90|0,b+4520|0,d+90|0);dc(27420,e+(f*2044|0)+99|0,b+4560|0,d+99|0);dc(27420,e+(f*2044|0)+108|0,b+4600|0,d+108|0);dc(27420,e+(f*2044|0)+117|0,b+4640|0,d+117|0);dc(27444,e+(f*2044|0)+126|0,b+4680|0,d+126|0);dc(27444,e+(f*2044|0)+129|0,b+4696|0,d+129|0);dc(27444,e+(f*2044|0)+132|0,b+4712|0,d+132|0);dc(27444,e+(f*2044|0)+135|0,b+4728|0,d+135|0);dc(27444,e+(f*2044|0)+138|0,b+4744|0,d+138|0);dc(27444,e+(f*2044|0)+141|0,b+4760|0,d+141|0);dc(27444,e+(f*2044|0)+144|0,b+4776|0,d+144|0);dc(27444,e+(f*2044|0)+147|0,b+4792|0,d+147|0);dc(27444,e+(f*2044|0)+150|0,b+4808|0,d+150|0);dc(27444,e+(f*2044|0)+153|0,b+4824|0,d+153|0);dc(27444,e+(f*2044|0)+156|0,b+4840|0,d+156|0);dc(27444,e+(f*2044|0)+159|0,b+4856|0,d+159|0);dc(27444,e+(f*2044|0)+162|0,b+4872|0,d+162|0);dc(27444,e+(f*2044|0)+165|0,b+4888|0,d+165|0);dc(27444,e+(f*2044|0)+168|0,b+4904|0,d+168|0);dc(27444,e+(f*2044|0)+171|0,b+4920|0,d+171|0);if((a[b+780>>0]|0)==4){dc(27450,e+(f*2044|0)+1902|0,b+16456|0,d+1902|0);dc(27450,e+(f*2044|0)+1904|0,b+16468|0,d+1904|0);dc(27450,e+(f*2044|0)+1906|0,b+16480|0,d+1906|0);dc(27450,e+(f*2044|0)+1908|0,b+16492|0,d+1908|0)}if((c[b+616>>2]|0)==4){J=c[b+16864>>2]|0;H=a[e+(f*2044|0)+1965>>0]|0;i=(c[b+16868>>2]|0)+J|0;if(!i)K=H;else{I=Mj(J|0,0,8)|0;J=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;l=Kj(i>>>1|0,0,I|0,D|0)|0;I=Tj(l|0,D|0,i|0,0)|0;K=((S(256-J|0,H&255)|0)+128+(S(((255-I|0)>>>23|I)&255|(I|0)==0,J)|0)|0)>>>8&255}a[d+1965>>0]=K;K=c[b+16840>>2]|0;J=c[b+16844>>2]|0;I=(c[b+16848>>2]|0)+J|0;H=a[e+(f*2044|0)+1961>>0]|0;i=I+K|0;if(!i)L=H;else{l=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;G=Mj(K|0,0,8)|0;K=Kj(i>>>1|0,0,G|0,D|0)|0;G=Tj(K|0,D|0,i|0,0)|0;L=((S(256-l|0,H&255)|0)+128+(S(((255-G|0)>>>23|G)&255|(G|0)==0,l)|0)|0)>>>8&255}a[d+1961>>0]=L;L=a[e+(f*2044|0)+1962>>0]|0;if(!I)M=L;else{l=c[19488+((I>>>0<20?I:20)<<2)>>2]|0;G=Mj(J|0,0,8)|0;J=Kj(I>>>1|0,0,G|0,D|0)|0;G=Tj(J|0,D|0,I|0,0)|0;M=((S(256-l|0,L&255)|0)+128+(S(((255-G|0)>>>23|G)&255|(G|0)==0,l)|0)|0)>>>8&255}a[d+1962>>0]=M;M=c[b+16808>>2]|0;l=c[b+16812>>2]|0;G=c[b+16816>>2]|0;L=c[b+16820>>2]|0;I=L+G|0;J=a[e+(f*2044|0)+1955>>0]|0;H=G+l+L+M|0;if(!H)N=J;else{L=c[19488+((H>>>0<20?H:20)<<2)>>2]|0;i=Mj(M|0,0,8)|0;M=Kj(H>>>1|0,0,i|0,D|0)|0;i=Tj(M|0,D|0,H|0,0)|0;N=((S(256-L|0,J&255)|0)+128+(S(((255-i|0)>>>23|i)&255|(i|0)==0,L)|0)|0)>>>8&255}a[d+1955>>0]=N;N=a[e+(f*2044|0)+1956>>0]|0;L=I+l|0;if(!L)O=N;else{i=c[19488+((L>>>0<20?L:20)<<2)>>2]|0;J=Mj(l|0,0,8)|0;l=Kj(L>>>1|0,0,J|0,D|0)|0;J=Tj(l|0,D|0,L|0,0)|0;O=((S(256-i|0,N&255)|0)+128+(S(((255-J|0)>>>23|J)&255|(J|0)==0,i)|0)|0)>>>8&255}a[d+1956>>0]=O;O=a[e+(f*2044|0)+1957>>0]|0;if(!I)P=O;else{i=c[19488+((I>>>0<20?I:20)<<2)>>2]|0;J=Mj(G|0,0,8)|0;G=Kj(I>>>1|0,0,J|0,D|0)|0;J=Tj(G|0,D|0,I|0,0)|0;P=((S(256-i|0,O&255)|0)+128+(S(((255-J|0)>>>23|J)&255|(J|0)==0,i)|0)|0)>>>8&255}a[d+1957>>0]=P;P=c[b+16872>>2]|0;i=a[e+(f*2044|0)+1966>>0]|0;J=(c[b+16876>>2]|0)+P|0;if(!J)Q=i;else{O=Mj(P|0,0,8)|0;P=c[19488+((J>>>0<20?J:20)<<2)>>2]|0;I=Kj(J>>>1|0,0,O|0,D|0)|0;O=Tj(I|0,D|0,J|0,0)|0;Q=((S(256-P|0,i&255)|0)+128+(S(((255-O|0)>>>23|O)&255|(O|0)==0,P)|0)|0)>>>8&255}a[d+1966>>0]=Q;Q=c[b+16852>>2]|0;P=c[b+16856>>2]|0;O=(c[b+16860>>2]|0)+P|0;i=a[e+(f*2044|0)+1963>>0]|0;J=O+Q|0;if(!J)R=i;else{I=c[19488+((J>>>0<20?J:20)<<2)>>2]|0;G=Mj(Q|0,0,8)|0;Q=Kj(J>>>1|0,0,G|0,D|0)|0;G=Tj(Q|0,D|0,J|0,0)|0;R=((S(256-I|0,i&255)|0)+128+(S(((255-G|0)>>>23|G)&255|(G|0)==0,I)|0)|0)>>>8&255}a[d+1963>>0]=R;R=a[e+(f*2044|0)+1964>>0]|0;if(!O)T=R;else{I=c[19488+((O>>>0<20?O:20)<<2)>>2]|0;G=Mj(P|0,0,8)|0;P=Kj(O>>>1|0,0,G|0,D|0)|0;G=Tj(P|0,D|0,O|0,0)|0;T=((S(256-I|0,R&255)|0)+128+(S(((255-G|0)>>>23|G)&255|(G|0)==0,I)|0)|0)>>>8&255}a[d+1964>>0]=T;T=c[b+16824>>2]|0;I=c[b+16828>>2]|0;G=c[b+16832>>2]|0;R=c[b+16836>>2]|0;O=R+G|0;P=a[e+(f*2044|0)+1958>>0]|0;i=G+I+R+T|0;if(!i)U=P;else{R=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;J=Mj(T|0,0,8)|0;T=Kj(i>>>1|0,0,J|0,D|0)|0;J=Tj(T|0,D|0,i|0,0)|0;U=((S(256-R|0,P&255)|0)+128+(S(((255-J|0)>>>23|J)&255|(J|0)==0,R)|0)|0)>>>8&255}a[d+1958>>0]=U;U=a[e+(f*2044|0)+1959>>0]|0;R=O+I|0;if(!R)V=U;else{J=c[19488+((R>>>0<20?R:20)<<2)>>2]|0;P=Mj(I|0,0,8)|0;I=Kj(R>>>1|0,0,P|0,D|0)|0;P=Tj(I|0,D|0,R|0,0)|0;V=((S(256-J|0,U&255)|0)+128+(S(((255-P|0)>>>23|P)&255|(P|0)==0,J)|0)|0)>>>8&255}a[d+1959>>0]=V;V=a[e+(f*2044|0)+1960>>0]|0;if(!O)W=V;else{J=c[19488+((O>>>0<20?O:20)<<2)>>2]|0;P=Mj(G|0,0,8)|0;G=Kj(O>>>1|0,0,P|0,D|0)|0;P=Tj(G|0,D|0,O|0,0)|0;W=((S(256-J|0,V&255)|0)+128+(S(((255-P|0)>>>23|P)&255|(P|0)==0,J)|0)|0)>>>8&255}a[d+1960>>0]=W}W=a[e+(f*2044|0)+1967>>0]|0;J=c[b+16896>>2]|0;P=(c[b+16900>>2]|0)+J|0;if(!P)X=W;else{V=c[19488+((P>>>0<20?P:20)<<2)>>2]|0;O=Mj(J|0,0,8)|0;J=Kj(P>>>1|0,0,O|0,D|0)|0;O=Tj(J|0,D|0,P|0,0)|0;X=((S(256-V|0,W&255)|0)+128+(S(((255-O|0)>>>23|O)&255|(O|0)==0,V)|0)|0)>>>8&255}a[d+1967>>0]=X;X=a[e+(f*2044|0)+1968>>0]|0;V=c[b+16904>>2]|0;O=(c[b+16908>>2]|0)+V|0;if(!O)Y=X;else{W=c[19488+((O>>>0<20?O:20)<<2)>>2]|0;P=Mj(V|0,0,8)|0;V=Kj(O>>>1|0,0,P|0,D|0)|0;P=Tj(V|0,D|0,O|0,0)|0;Y=((S(256-W|0,X&255)|0)+128+(S(((255-P|0)>>>23|P)&255|(P|0)==0,W)|0)|0)>>>8&255}a[d+1968>>0]=Y;Y=a[e+(f*2044|0)+1969>>0]|0;f=c[b+16912>>2]|0;e=(c[b+16916>>2]|0)+f|0;if(!e){Z=Y;_=d+1969|0;a[_>>0]=Z;return}b=c[19488+((e>>>0<20?e:20)<<2)>>2]|0;W=Mj(f|0,0,8)|0;f=Kj(e>>>1|0,0,W|0,D|0)|0;W=Tj(f|0,D|0,e|0,0)|0;Z=((S(256-b|0,Y&255)|0)+128+(S(((255-W|0)>>>23|W)&255|(W|0)==0,b)|0)|0)>>>8&255;_=d+1969|0;a[_>>0]=Z;return}function Le(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;of(d+3980|0);a[d+3983>>0]=0;e=c[d+768>>2]|0;if(e|0?(c[d+4096>>2]|0)==0:0)Jj(e|0,0,S(c[d+608>>2]|0,c[d+600>>2]|0)|0)|0;e=c[d+772>>2]|0;if(e|0)Jj(e|0,0,S(c[d+608>>2]|0,c[d+600>>2]|0)|0)|0;e=d+3962|0;b[e>>1]=0;b[e+2>>1]=0>>>16;b[d+3968>>1]=0;a[d+3956>>0]=1;a[d+3957>>0]=1;a[d+3958>>0]=1;a[d+3959>>0]=0;a[d+3960>>0]=-1;a[d+3961>>0]=-1;a[d+3966>>0]=0;a[d+3967>>0]=0;c[d+3952>>2]=-1;Ie(d);e=d+4108|0;f=c[e>>2]|0;g=f+36|0;h=27454;i=g+90|0;do{a[g>>0]=a[h>>0]|0;g=g+1|0;h=h+1|0}while((g|0)<(i|0));g=f;h=27544;i=g+36|0;do{a[g>>0]=a[h>>0]|0;g=g+1|0;h=h+1|0}while((g|0)<(i|0));j=f+1902|0;k=j;a[k>>0]=-14376213;a[k+1>>0]=-14376213>>8;a[k+2>>0]=-14376213>>16;a[k+3>>0]=-14376213>>24;k=j+4|0;a[k>>0]=-1869282526;a[k+1>>0]=-1869282526>>8;a[k+2>>0]=-1869282526>>16;a[k+3>>0]=-1869282526>>24;g=f+126|0;h=27580;i=g+48|0;do{a[g>>0]=a[h>>0]|0;g=g+1|0;h=h+1|0}while((g|0)<(i|0));k=f+1931|0;a[k>>0]=-507812343;a[k+1>>0]=-507812343>>8;a[k+2>>0]=-507812343>>16;a[k+3>>0]=-507812343>>24;k=f+1935|0;a[k>>0]=a[27628]|0;a[k+1>>0]=a[27629]|0;a[k+2>>0]=a[27630]|0;a[k+3>>0]=a[27631]|0;a[k+4>>0]=a[27632]|0;k=f+1950|0;a[k>>0]=a[27633]|0;a[k+1>>0]=a[27634]|0;a[k+2>>0]=a[27635]|0;a[k+3>>0]=a[27636]|0;a[k+4>>0]=a[27637]|0;g=f+1940|0;h=27638;i=g+10|0;do{a[g>>0]=a[h>>0]|0;g=g+1|0;h=h+1|0}while((g|0)<(i|0));g=f+1955|0;h=27648;i=g+12|0;do{a[g>>0]=a[h>>0]|0;g=g+1|0;h=h+1|0}while((g|0)<(i|0));k=f+1967|0;a[k>>0]=a[27660]|0;a[k+1>>0]=a[27661]|0;a[k+2>>0]=a[27662]|0;g=f+1910|0;h=27663;i=g+21|0;do{a[g>>0]=a[h>>0]|0;g=g+1|0;h=h+1|0}while((g|0)<(i|0));Oe(d);h=c[e>>2]|0;c[h+2040>>2]=1;g=d+564|0;a:do if((c[g>>2]|0)!=0?(c[d+17360>>2]|0)==0:0){switch(c[d+588>>2]|0){case 3:{l=9;break a;break}case 2:break;default:break a}Qj((c[d+4112>>2]|0)+((c[d+4116>>2]|0)*2044|0)|0,h|0,2044)|0}else l=9;while(0);if((l|0)==9){l=d+4112|0;Qj(c[l>>2]|0,h|0,2044)|0;Qj((c[l>>2]|0)+2044|0,c[e>>2]|0,2044)|0;Qj((c[l>>2]|0)+4088|0,c[e>>2]|0,2044)|0;Qj((c[l>>2]|0)+6132|0,c[e>>2]|0,2044)|0}if(c[g>>2]|0?(a[d+580>>0]|0)==0:0){m=d+3924|0;c[m>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;n=d+4116|0;c[n>>2]=0;return}g=c[d+712>>2]|0;if(!g){m=d+3924|0;c[m>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;n=d+4116|0;c[n>>2]=0;return}if(c[d+4096>>2]|0){m=d+3924|0;c[m>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;n=d+4116|0;c[n>>2]=0;return}Jj(g|0,0,S((c[d+612>>2]|0)*68|0,(c[d+600>>2]|0)+1|0)|0)|0;m=d+3924|0;c[m>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;n=d+4116|0;c[n>>2]=0;return}function Me(a,e){a=a|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;if(!e)return;f=b[a>>1]|0;g=b[a+2>>1]|0;a=g<<16>>16==0;h=f<<16>>16==0?(a^1)&1:a?2:3;a=e+(h<<2)|0;c[a>>2]=(c[a>>2]|0)+1;if((h|1|0)==3){a=f<<16>>16;i=e+16+(a>>>31<<2)|0;c[i>>2]=(c[i>>2]|0)+1;i=(f<<16>>16<0?0-a|0:a)+-1|0;if((i|0)>8191)j=10;else j=d[27718+(i>>3)>>0]|0;a=(j|0)==0;f=i-(a?0:8<<j)|0;i=e+24+(j<<2)|0;c[i>>2]=(c[i>>2]|0)+1;i=f>>3;k=f>>>1&3;l=f&1;if(a){a=e+68+(i<<2)|0;c[a>>2]=(c[a>>2]|0)+1;a=e+156+(i<<4)+(k<<2)|0;c[a>>2]=(c[a>>2]|0)+1;m=e+204+(l<<2)|0}else{a=0;do{f=e+76+(a<<3)+((i>>>a&1)<<2)|0;c[f>>2]=(c[f>>2]|0)+1;a=a+1|0}while((a|0)<(j|0));j=e+188+(k<<2)|0;c[j>>2]=(c[j>>2]|0)+1;m=e+212+(l<<2)|0}c[m>>2]=(c[m>>2]|0)+1}if((h|2|0)!=3)return;h=g<<16>>16;m=e+220+(h>>>31<<2)|0;c[m>>2]=(c[m>>2]|0)+1;m=(g<<16>>16<0?0-h|0:h)+-1|0;if((m|0)>8191)n=10;else n=d[27718+(m>>3)>>0]|0;h=(n|0)==0;g=m-(h?0:8<<n)|0;m=e+228+(n<<2)|0;c[m>>2]=(c[m>>2]|0)+1;m=g>>3;l=g>>>1&3;j=g&1;if(h){h=e+272+(m<<2)|0;c[h>>2]=(c[h>>2]|0)+1;h=e+360+(m<<4)+(l<<2)|0;c[h>>2]=(c[h>>2]|0)+1;o=e+408+(j<<2)|0}else{h=0;do{g=e+280+(h<<3)+((m>>>h&1)<<2)|0;c[g>>2]=(c[g>>2]|0)+1;h=h+1|0}while((h|0)<(n|0));n=e+392+(l<<2)|0;c[n>>2]=(c[n>>2]|0)+1;o=e+416+(j<<2)|0}c[o>>2]=(c[o>>2]|0)+1;return}function Ne(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;e=c[b+4108>>2]|0;f=c[b+4112>>2]|0;g=c[b+4116>>2]|0;dc(27684,f+(g*2044|0)+1970|0,b+16920|0,e+1970|0);h=(d|0)==0;d=0;do{i=a[f+(g*2044|0)+1973+(d*33|0)>>0]|0;j=c[b+16936+(d*204|0)>>2]|0;k=(c[b+16936+(d*204|0)+4>>2]|0)+j|0;if(!k)l=i;else{m=c[19488+((k>>>0<20?k:20)<<2)>>2]|0;n=Mj(j|0,0,8)|0;j=Kj(k>>>1|0,0,n|0,D|0)|0;n=Tj(j|0,D|0,k|0,0)|0;l=((S(256-m|0,i&255)|0)+128+(S(((255-n|0)>>>23|n)&255|(n|0)==0,m)|0)|0)>>>8&255}a[e+1973+(d*33|0)>>0]=l;dc(27690,f+(g*2044|0)+1973+(d*33|0)+1|0,b+16936+(d*204|0)+8|0,e+1973+(d*33|0)+1|0);dc(27710,f+(g*2044|0)+1973+(d*33|0)+11|0,b+16936+(d*204|0)+52|0,e+1973+(d*33|0)+11|0);m=a[f+(g*2044|0)+1973+(d*33|0)+12>>0]|0;n=c[b+16936+(d*204|0)+60>>2]|0;i=(c[b+16936+(d*204|0)+64>>2]|0)+n|0;if(!i)o=m;else{k=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;j=Mj(n|0,0,8)|0;n=Kj(i>>>1|0,0,j|0,D|0)|0;j=Tj(n|0,D|0,i|0,0)|0;o=((S(256-k|0,m&255)|0)+128+(S(((255-j|0)>>>23|j)&255|(j|0)==0,k)|0)|0)>>>8&255}a[e+1973+(d*33|0)+12>>0]=o;k=a[f+(g*2044|0)+1973+(d*33|0)+13>>0]|0;j=c[b+16936+(d*204|0)+68>>2]|0;m=(c[b+16936+(d*204|0)+72>>2]|0)+j|0;if(!m)p=k;else{i=c[19488+((m>>>0<20?m:20)<<2)>>2]|0;n=Mj(j|0,0,8)|0;j=Kj(m>>>1|0,0,n|0,D|0)|0;n=Tj(j|0,D|0,m|0,0)|0;p=((S(256-i|0,k&255)|0)+128+(S(((255-n|0)>>>23|n)&255|(n|0)==0,i)|0)|0)>>>8&255}a[e+1973+(d*33|0)+13>>0]=p;i=a[f+(g*2044|0)+1973+(d*33|0)+14>>0]|0;n=c[b+16936+(d*204|0)+76>>2]|0;k=(c[b+16936+(d*204|0)+80>>2]|0)+n|0;if(!k)q=i;else{m=c[19488+((k>>>0<20?k:20)<<2)>>2]|0;j=Mj(n|0,0,8)|0;n=Kj(k>>>1|0,0,j|0,D|0)|0;j=Tj(n|0,D|0,k|0,0)|0;q=((S(256-m|0,i&255)|0)+128+(S(((255-j|0)>>>23|j)&255|(j|0)==0,m)|0)|0)>>>8&255}a[e+1973+(d*33|0)+14>>0]=q;m=a[f+(g*2044|0)+1973+(d*33|0)+15>>0]|0;j=c[b+16936+(d*204|0)+84>>2]|0;i=(c[b+16936+(d*204|0)+88>>2]|0)+j|0;if(!i)r=m;else{k=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;n=Mj(j|0,0,8)|0;j=Kj(i>>>1|0,0,n|0,D|0)|0;n=Tj(j|0,D|0,i|0,0)|0;r=((S(256-k|0,m&255)|0)+128+(S(((255-n|0)>>>23|n)&255|(n|0)==0,k)|0)|0)>>>8&255}a[e+1973+(d*33|0)+15>>0]=r;k=a[f+(g*2044|0)+1973+(d*33|0)+16>>0]|0;n=c[b+16936+(d*204|0)+92>>2]|0;m=(c[b+16936+(d*204|0)+96>>2]|0)+n|0;if(!m)s=k;else{i=c[19488+((m>>>0<20?m:20)<<2)>>2]|0;j=Mj(n|0,0,8)|0;n=Kj(m>>>1|0,0,j|0,D|0)|0;j=Tj(n|0,D|0,m|0,0)|0;s=((S(256-i|0,k&255)|0)+128+(S(((255-j|0)>>>23|j)&255|(j|0)==0,i)|0)|0)>>>8&255}a[e+1973+(d*33|0)+16>>0]=s;i=a[f+(g*2044|0)+1973+(d*33|0)+17>>0]|0;j=c[b+16936+(d*204|0)+100>>2]|0;k=(c[b+16936+(d*204|0)+104>>2]|0)+j|0;if(!k)t=i;else{m=c[19488+((k>>>0<20?k:20)<<2)>>2]|0;n=Mj(j|0,0,8)|0;j=Kj(k>>>1|0,0,n|0,D|0)|0;n=Tj(j|0,D|0,k|0,0)|0;t=((S(256-m|0,i&255)|0)+128+(S(((255-n|0)>>>23|n)&255|(n|0)==0,m)|0)|0)>>>8&255}a[e+1973+(d*33|0)+17>>0]=t;m=a[f+(g*2044|0)+1973+(d*33|0)+18>>0]|0;n=c[b+16936+(d*204|0)+108>>2]|0;i=(c[b+16936+(d*204|0)+112>>2]|0)+n|0;if(!i)u=m;else{k=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;j=Mj(n|0,0,8)|0;n=Kj(i>>>1|0,0,j|0,D|0)|0;j=Tj(n|0,D|0,i|0,0)|0;u=((S(256-k|0,m&255)|0)+128+(S(((255-j|0)>>>23|j)&255|(j|0)==0,k)|0)|0)>>>8&255}a[e+1973+(d*33|0)+18>>0]=u;k=a[f+(g*2044|0)+1973+(d*33|0)+19>>0]|0;j=c[b+16936+(d*204|0)+116>>2]|0;m=(c[b+16936+(d*204|0)+120>>2]|0)+j|0;if(!m)v=k;else{i=c[19488+((m>>>0<20?m:20)<<2)>>2]|0;n=Mj(j|0,0,8)|0;j=Kj(m>>>1|0,0,n|0,D|0)|0;n=Tj(j|0,D|0,m|0,0)|0;v=((S(256-i|0,k&255)|0)+128+(S(((255-n|0)>>>23|n)&255|(n|0)==0,i)|0)|0)>>>8&255}a[e+1973+(d*33|0)+19>>0]=v;i=a[f+(g*2044|0)+1973+(d*33|0)+20>>0]|0;n=c[b+16936+(d*204|0)+124>>2]|0;k=(c[b+16936+(d*204|0)+128>>2]|0)+n|0;if(!k)w=i;else{m=c[19488+((k>>>0<20?k:20)<<2)>>2]|0;j=Mj(n|0,0,8)|0;n=Kj(k>>>1|0,0,j|0,D|0)|0;j=Tj(n|0,D|0,k|0,0)|0;w=((S(256-m|0,i&255)|0)+128+(S(((255-j|0)>>>23|j)&255|(j|0)==0,m)|0)|0)>>>8&255}a[e+1973+(d*33|0)+20>>0]=w;m=a[f+(g*2044|0)+1973+(d*33|0)+21>>0]|0;j=c[b+16936+(d*204|0)+132>>2]|0;i=(c[b+16936+(d*204|0)+136>>2]|0)+j|0;if(!i)x=m;else{k=c[19488+((i>>>0<20?i:20)<<2)>>2]|0;n=Mj(j|0,0,8)|0;j=Kj(i>>>1|0,0,n|0,D|0)|0;n=Tj(j|0,D|0,i|0,0)|0;x=((S(256-k|0,m&255)|0)+128+(S(((255-n|0)>>>23|n)&255|(n|0)==0,k)|0)|0)>>>8&255}a[e+1973+(d*33|0)+21>>0]=x;dc(27712,f+(g*2044|0)+1973+(d*33|0)+22|0,b+16936+(d*204|0)+140|0,e+1973+(d*33|0)+22|0);dc(27712,f+(g*2044|0)+1973+(d*33|0)+25|0,b+16936+(d*204|0)+156|0,e+1973+(d*33|0)+25|0);dc(27712,f+(g*2044|0)+1973+(d*33|0)+28|0,b+16936+(d*204|0)+172|0,e+1973+(d*33|0)+28|0);if(!h){k=a[f+(g*2044|0)+1973+(d*33|0)+31>>0]|0;n=c[b+16936+(d*204|0)+188>>2]|0;m=(c[b+16936+(d*204|0)+192>>2]|0)+n|0;if(!m)y=k;else{i=c[19488+((m>>>0<20?m:20)<<2)>>2]|0;j=Mj(n|0,0,8)|0;n=Kj(m>>>1|0,0,j|0,D|0)|0;j=Tj(n|0,D|0,m|0,0)|0;y=((S(256-i|0,k&255)|0)+128+(S(((255-j|0)>>>23|j)&255|(j|0)==0,i)|0)|0)>>>8&255}a[e+1973+(d*33|0)+31>>0]=y;i=a[f+(g*2044|0)+1973+(d*33|0)+32>>0]|0;j=c[b+16936+(d*204|0)+196>>2]|0;k=(c[b+16936+(d*204|0)+200>>2]|0)+j|0;if(!k)z=i;else{m=c[19488+((k>>>0<20?k:20)<<2)>>2]|0;n=Mj(j|0,0,8)|0;j=Kj(k>>>1|0,0,n|0,D|0)|0;n=Tj(j|0,D|0,k|0,0)|0;z=((S(256-m|0,i&255)|0)+128+(S(((255-n|0)>>>23|n)&255|(n|0)==0,m)|0)|0)>>>8&255}a[e+1973+(d*33|0)+32>>0]=z}d=d+1|0}while((d|0)!=2);return}function Oe(b){b=b|0;var d=0,e=0;d=(c[b+4108>>2]|0)+1970|0;b=28743;e=d+69|0;do{a[d>>0]=a[b>>0]|0;d=d+1|0;b=b+1|0}while((d|0)<(e|0));return}function Pe(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=a+4|0;d=c[b>>2]|0;if((c[a>>2]|0)>0){e=d;f=0;while(1){Yb(c[e+(f*12|0)>>2]|0);g=c[b>>2]|0;c[g+(f*12|0)>>2]=0;f=f+1|0;if((f|0)>=(c[a>>2]|0)){h=g;break}else e=g}}else h=d;Yb(h);c[b>>2]=0;c[a>>2]=16;a=Xb(16,12)|0;c[b>>2]=a;return (a|0)==0|0}function Qe(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=a+4|0;d=c[b>>2]|0;if((c[a>>2]|0)>0){e=d;f=0}else{g=d;Yb(g);c[b>>2]=0;return}while(1){Yb(c[e+(f*12|0)>>2]|0);d=c[b>>2]|0;c[d+(f*12|0)>>2]=0;f=f+1|0;if((f|0)>=(c[a>>2]|0)){g=d;break}else e=d}Yb(g);c[b>>2]=0;return}function Re(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!a){e=-1;return e|0}f=c[a>>2]|0;a:do if((f|0)>0){g=c[a+4>>2]|0;h=0;while(1){if(!(c[g+(h*12|0)+8>>2]|0)){i=h;break a}j=h+1|0;if((j|0)<(f|0))h=j;else{i=j;break}}}else i=0;while(0);if((i|0)==(f|0)){e=-1;return e|0}f=a+4|0;a=c[f>>2]|0;h=c[a+(i*12|0)+4>>2]|0;do if(h>>>0<b>>>0){Yb(c[a+(i*12|0)>>2]|0);g=Xb(1,b)|0;j=c[f>>2]|0;c[j+(i*12|0)>>2]=g;if(!g){e=-1;return e|0}else{c[j+(i*12|0)+4>>2]=b;k=j;l=b;break}}else{k=a;l=h}while(0);c[d>>2]=c[k+(i*12|0)>>2];c[d+4>>2]=l;c[k+(i*12|0)+8>>2]=1;c[d+8>>2]=k+(i*12|0);e=0;return e|0}function Se(a,b){a=a|0;b=b|0;a=c[b+8>>2]|0;if(!a)return 0;c[a+8>>2]=0;return 0}function Te(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;i=l;l=l+48|0;j=i+16|0;k=i+8|0;m=i;n=c[19572+(h<<3)+4>>2]|0;Ab[n&7](e,j);Ab[n&7](e+8|0,j+8|0);Ab[n&7](e+16|0,j+16|0);Ab[n&7](e+24|0,j+24|0);e=c[19572+(h<<3)>>2]|0;h=k+2|0;n=k+4|0;o=k+6|0;p=m+2|0;q=g<<1;r=m+4|0;s=g*3|0;t=m+6|0;u=0;do{b[k>>1]=b[j+(u<<1)>>1]|0;b[h>>1]=b[j+(u+4<<1)>>1]|0;b[n>>1]=b[j+(u+8<<1)>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,j+64|0);Ab[o&7](e+96|0,j+96|0);Ab[o&7](e+128|0,j+128|0);Ab[o&7](e+160|0,j+160|0);Ab[o&7](e+192|0,j+192|0);Ab[o&7](e+224|0,j+224|0);Ab[o&7](e+256|0,j+256|0);Ab[o&7](e+288|0,j+288|0);Ab[o&7](e+320|0,j+320|0);Ab[o&7](e+352|0,j+352|0);Ab[o&7](e+384|0,j+384|0);Ab[o&7](e+416|0,j+416|0);Ab[o&7](e+448|0,j+448|0);Ab[o&7](e+480|0,j+480|0);e=k+2|0;o=k+4|0;h=k+6|0;p=k+8|0;q=k+10|0;r=k+12|0;s=k+14|0;t=k+16|0;u=k+18|0;v=k+20|0;w=k+22|0;x=k+24|0;y=k+26|0;z=k+28|0;A=k+30|0;B=0;do{b[k>>1]=b[j+(B<<1)>>1]|0;b[e>>1]=b[j+(B+16<<1)>>1]|0;b[o>>1]=b[j+(B+32<<1)>>1]|0;b[h>>1]=b[j+(B+48<<1)>>1]|0;b[p>>1]=b[j+(B+64<<1)>>1]|0;b[q>>1]=b[j+(B+80<<1)>>1]|0;b[r>>1]=b[j+(B+96<<1)>>1]|0;b[s>>1]=b[j+(B+112<<1)>>1]|0;b[t>>1]=b[j+(B+128<<1)>>1]|0;b[u>>1]=b[j+(B+144<<1)>>1]|0;b[v>>1]=b[j+(B+160<<1)>>1]|0;b[w>>1]=b[j+(B+176<<1)>>1]|0;b[x>>1]=b[j+(B+192<<1)>>1]|0;b[y>>1]=b[j+(B+208<<1)>>1]|0;b[z>>1]=b[j+(B+224<<1)>>1]|0;b[A>>1]=b[j+(B+240<<1)>>1]|0;Ab[n&7](k,m);C=0;do{D=f+((S(C,g)|0)+B)|0;E=((b[m+(C<<1)>>1]|0)+32>>6)+(d[D>>0]|0)|0;a[D>>0]=(E|0)>255?-1:((E|0)>0?E:0)&255;C=C+1|0}while((C|0)!=16);B=B+1|0}while((B|0)!=16);l=i;return}function We(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if((d|0)>1){Xd(a,b,c);return}else{Yd(a,b,c);return}}function Xe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if((d|0)>1){Ud(a,b,c);return}else{Vd(a,b,c);return}}function Ye(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if((d|0)==1){$d(a,b,c);return}if((d|0)<13){ce(a,b,c);return}else{_d(a,b,c);return}}function Ze(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if((d|0)==1){he(a,b,c);return}if((d|0)<11){ge(a,b,c);return}else{ee(a,b,c);return}}function _e(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if((d|0)==1){me(a,b,c);return}if((d|0)<35){le(a,b,c);return}if((d|0)<136){ke(a,b,c);return}else{je(a,b,c);return}}function $e(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(a|0){Te(b,c,d,a);return}if((e|0)>1){Xd(b,c,d);return}else{Yd(b,c,d);return}}function af(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(a|0){Ue(b,c,d,a);return}if((e|0)==1){$d(b,c,d);return}if((e|0)<13){ce(b,c,d);return}else{_d(b,c,d);return}}function bf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(a|0){Ve(b,c,d,a);return}if((e|0)==1){he(b,c,d);return}if((e|0)<11){ge(b,c,d);return}else{ee(b,c,d);return}}function cf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[d+300>>2]|0;f=c[d+296>>2]|0;d=(e|0)!=0;g=(f|0)!=0;if(!(d&g)){if(!(d|g)){h=1;return h|0}g=d?e:f;if((a[g+9>>0]|0)>0){h=3;return h|0}h=(a[g+8>>0]|0)==(a[b+4100>>0]|0)&1;return h|0}g=(a[f+9>>0]|0)>0;if((a[e+9>>0]|0)>0){if(g){h=4;return h|0}d=a[f+8>>0]|0;if(d<<24>>24==(a[b+4100>>0]|0)){h=3;return h|0}h=d<<24>>24>0?2:3;return h|0}d=a[e+8>>0]|0;e=a[b+4100>>0]|0;b=d<<24>>24==e<<24>>24;if(!g){h=(b^(a[f+8>>0]|0)==e<<24>>24)&1;return h|0}if(b){h=3;return h|0}h=d<<24>>24>0?2:3;return h|0}function df(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=c[d+300>>2]|0;f=c[d+296>>2]|0;d=(e|0)!=0;g=(f|0)!=0;h=a[b+4100>>0]|0;i=(c[b+3924+(h<<24>>24<<2)>>2]|0)==0;j=i&1;if(!(d&g)){if(!(d|g)){k=2;return k|0}g=d?e:f;d=a[g+8>>0]|0;if(d<<24>>24<=0){k=2;return k|0}l=a[b+4102>>0]|0;if((a[g+9>>0]|0)>0){k=((a[g+8+j>>0]|0)!=l<<24>>24&1)<<2;return k|0}else{k=d<<24>>24!=l<<24>>24?3:0;return k|0}}l=(a[e+8>>0]|0)>0;d=(a[f+8>>0]|0)>0;if(!(l|d)){k=2;return k|0}if(!(l&d)){d=l?e:f;k=((a[((a[d+9>>0]|0)>0&i&1)+(d+8)>>0]|0)!=(a[b+4102>>0]|0)&1)<<1|1;return k|0}d=(a[f+9>>0]|0)>0;l=(a[e+9>>0]|0)>0;j=a[(i&l&1)+(e+8)>>0]|0;e=a[(i&d&1)+(f+8)>>0]|0;f=j<<24>>24==e<<24>>24;if(f?(a[b+4102>>0]|0)==j<<24>>24:0){k=0;return k|0}if(d|l){if(d&l){k=f?4:2;return k|0}i=d?e:j;d=l?e:j;l=a[b+4102>>0]|0;if(i<<24>>24!=l<<24>>24?1:d<<24>>24==l<<24>>24)return ((d<<24>>24!=l<<24>>24?1:i<<24>>24==l<<24>>24)?4:2)|0;else{k=1;return k|0}}if(j<<24>>24==h<<24>>24?e<<24>>24==(a[b+4101>>0]|0):0){k=4;return k|0}if(e<<24>>24==h<<24>>24?j<<24>>24==(a[b+4101>>0]|0):0){k=4;return k|0}k=f?3:1;return k|0}function ef(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=c[b+300>>2]|0;e=c[b+296>>2]|0;b=(d|0)!=0;f=(e|0)!=0;if(!(b&f)){if(!(b|f)){g=2;return g|0}f=b?d:e;b=a[f+8>>0]|0;if(b<<24>>24<=0){g=2;return g|0}h=a[f+9>>0]|0;f=b<<24>>24==1;if(h<<24>>24<=0){g=(f&1)<<2;return g|0}if(f){g=2;return g|0}g=h<<24>>24==1?2:1;return g|0}h=a[d+8>>0]|0;f=h<<24>>24>0;b=a[e+8>>0]|0;i=b<<24>>24>0;if(!(f|i)){g=2;return g|0}if(!(f&i)){i=f?d:e;f=a[i+9>>0]|0;j=(a[i+8>>0]|0)==1;if(f<<24>>24<=0){g=(j&1)<<2;return g|0}if(j){g=2;return g|0}g=f<<24>>24==1?2:1;return g|0}f=a[d+9>>0]|0;d=f<<24>>24>0;j=a[e+9>>0]|0;e=j<<24>>24>0;if(d&e){g=h<<24>>24==1|f<<24>>24==1|b<<24>>24==1|j<<24>>24==1?2:1;return g|0}if(!(d|e)){g=(b<<24>>24==1&1)+(h<<24>>24==1&1)<<1;return g|0}e=(d?h:b)<<24>>24==1?1:(d?f:j)<<24>>24==1;if((d?b:h)<<24>>24==1){g=e?4:3;return g|0}else{g=e&1;return g|0}return 0}function ff(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=c[b+300>>2]|0;e=c[b+296>>2]|0;b=(d|0)!=0;f=(e|0)!=0;if(!(b&f)){if(!(b|f)){g=2;return g|0}f=b?d:e;b=a[f+8>>0]|0;if(b<<24>>24<=0){g=2;return g|0}h=a[f+9>>0]|0;f=h<<24>>24>0;do if(b<<24>>24==1){if(!f){g=2;return g|0}}else{i=b<<24>>24==2;if(f){if(i)g=3;else break;return g|0}else{g=(i&1)<<2;return g|0}}while(0);g=h<<24>>24==2?3:0;return g|0}h=a[d+8>>0]|0;f=h<<24>>24>0;b=a[e+8>>0]|0;i=b<<24>>24>0;if(!(f|i)){g=2;return g|0}if(!(f&i)){i=f?d:e;f=a[i+9>>0]|0;j=a[i+8>>0]|0;if(f<<24>>24<=0)return (j<<24>>24==1?3:(j<<24>>24==2&1)<<2)|0;g=((j<<24>>24==2|f<<24>>24==2)&1)<<1|1;return g|0}f=a[d+9>>0]|0;d=f<<24>>24>0;j=a[e+9>>0]|0;e=j<<24>>24>0;if(d&e){if(!(h<<24>>24==b<<24>>24?f<<24>>24==j<<24>>24:0)){g=2;return g|0}g=h<<24>>24==2|f<<24>>24==2?3:0;return g|0}if(!(d|e)){e=h<<24>>24==1;i=b<<24>>24==1;if(e&i){g=3;return g|0}if(e|i){g=((e?b:h)<<24>>24==2&1)<<2;return g|0}else{g=(b<<24>>24==2&1)+(h<<24>>24==2&1)<<1;return g|0}}else{e=d?f:j;j=(d?h:b)<<24>>24==2;switch((d?b:h)<<24>>24){case 2:{g=j|e<<24>>24==2?4:3;return g|0}case 3:{g=(j|e<<24>>24==2)&1;return g|0}default:{g=((j|e<<24>>24==2)&1)<<1|1;return g|0}}}return 0}function gf(){vj(34832,3)|0;return}function hf(){return}function jf(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;h=e<<4;e=c[g>>2]|0;i=((e|0)<0)<<31>>31;j=Vj(e|0,i|0,h|0,((h|0)<0)<<31>>31|0)|0;h=Nj(j|0,D|0,14)|0;j=f<<4;f=c[g+4>>2]|0;g=((f|0)<0)<<31>>31;k=Vj(f|0,g|0,j|0,((j|0)<0)<<31>>31|0)|0;j=Nj(k|0,D|0,14)|0;k=b[d>>1]|0;l=Vj(k|0,((k|0)<0)<<31>>31|0,f|0,g|0)|0;g=Nj(l|0,D|0,14)|0;l=b[d+2>>1]|0;d=Vj(l|0,((l|0)<0)<<31>>31|0,e|0,i|0)|0;i=Nj(d|0,D|0,14)|0;c[a>>2]=g+(j&15);c[a+4>>2]=i+(h&15);return}function kf(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;if((d<<4|0)<(f|0)|((b<<4|0)<(e|0)|((e<<1|0)<(b|0)|(f<<1|0)<(d|0)))){c[a>>2]=-1;c[a+4>>2]=-1;return}g=(b<<14|0)/(e|0)|0;c[a>>2]=g;e=(d<<14|0)/(f|0)|0;c[a+4>>2]=e;f=g>>10;c[a+8>>2]=f;d=e>>10;c[a+12>>2]=d;if((g|0)==-1)h=0;else h=(e|0)!=-1&((g|0)!=16384|(e|0)!=16384);c[a+16>>2]=h?18:19;c[a+20>>2]=h?20:19;h=(f|0)==16;f=(d|0)==16;if(h){i=f?5:2;j=f?6:4;k=f?9:10;l=f?3:4;m=f?7:8;n=f?1:2}else{d=f?11:8;e=f?12:10;i=8;j=10;k=e;l=e;m=d;n=d}c[a+24>>2]=n;c[a+28>>2]=l;c[a+32>>2]=i;c[a+36>>2]=j;c[a+40>>2]=m;c[a+44>>2]=k;k=a+48|0;if(h&f){c[k>>2]=13;c[a+52>>2]=14;return}else{c[k>>2]=8;c[a+52>>2]=10;return}}function lf(a,b){a=a|0;b=b|0;var d=0;d=c[b>>2]|0;b=Vj(d|0,((d|0)<0)<<31>>31|0,a|0,((a|0)<0)<<31>>31|0)|0;a=Nj(b|0,D|0,14)|0;return a|0}function mf(a,b){a=a|0;b=b|0;return a|0}function nf(a,b){a=a|0;b=b|0;var d=0;d=c[b+4>>2]|0;b=Vj(d|0,((d|0)<0)<<31>>31|0,a|0,((a|0)<0)<<31>>31|0)|0;a=Nj(b|0,D|0,14)|0;return a|0}function of(a){a=a|0;var b=0;b=a+16|0;a=b+100|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(a|0));return}function pf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=a+80+(b<<2)|0;c[e>>2]=c[e>>2]|1<<d;return}function qf(a){a=a|0;return c[19684+(a<<2)>>2]|0}function rf(a){a=a|0;return c[19700+(a<<2)>>2]|0}function sf(a,c,d,e){a=a|0;c=c|0;d=d|0;e=e|0;b[a+16+(c<<3)+(d<<1)>>1]=e;return}function tf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=c[b+600>>2]|0;f=c[b+17372>>2]|0;b=e+7>>3;g=(S(b,d)|0)>>f<<3;c[a>>2]=(g|0)<(e|0)?g:e;g=(S(b,d+1|0)|0)>>f<<3;c[a+4>>2]=(g|0)<(e|0)?g:e;return}function uf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=c[b+608>>2]|0;f=c[b+17368>>2]|0;b=e+7>>3;g=(S(b,d)|0)>>f<<3;c[a+8>>2]=(g|0)<(e|0)?g:e;g=(S(b,d+1|0)|0)>>f<<3;c[a+12>>2]=(g|0)<(e|0)?g:e;return}function vf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=c[b+600>>2]|0;g=c[b+17372>>2]|0;h=f+7>>3;i=(S(h,d)|0)>>g<<3;c[a>>2]=(i|0)<(f|0)?i:f;i=(S(h,d+1|0)|0)>>g<<3;c[a+4>>2]=(i|0)<(f|0)?i:f;f=c[b+608>>2]|0;i=c[b+17368>>2]|0;b=f+7>>3;g=(S(b,e)|0)>>i<<3;c[a+8>>2]=(g|0)<(f|0)?g:f;g=(S(b,e+1|0)|0)>>i<<3;c[a+12>>2]=(g|0)<(f|0)?g:f;return}function wf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=a+7>>3;a=0;while(1)if((64<<a|0)<(e|0))a=a+1|0;else break;c[b>>2]=a;a=1;while(1)if((e>>a|0)>3)a=a+1|0;else break;c[d>>2]=a+-1;return}function xf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=a+3948|0;d=c[b>>2]|0;e=(d|0)>0;f=(e&1)+((d|0)>4&1)|0;g=9-d|0;if(e){e=0;do{d=e>>f;h=(d|0)>(g|0)?g:d;d=(h|0)>1?h:1;Jj(a+784+(e*48|0)+16|0,d&255|0,16)|0;Jj(a+784+(e*48|0)|0,(e<<1)+4+d&255|0,16)|0;e=e+1|0}while((e|0)!=64)}else{e=0;do{g=e>>f;d=(g|0)>1?g:1;Jj(a+784+(e*48|0)+16|0,d&255|0,16)|0;Jj(a+784+(e*48|0)|0,(e<<1)+4+d&255|0,16)|0;e=e+1|0}while((e|0)!=64)}c[a+3952>>2]=c[b>>2];b=0;do{Jj(a+784+(b*48|0)+32|0,b>>>4&255|0,16)|0;b=b+1|0}while((b|0)!=64);return}function yf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;f=e>>5;g=d+3952|0;h=d+3948|0;i=c[h>>2]|0;if((c[g>>2]|0)!=(i|0)){j=(i|0)>0;k=(j&1)+((i|0)>4&1)|0;l=9-i|0;if(j){j=0;do{i=j>>k;m=(i|0)>(l|0)?l:i;i=(m|0)>1?m:1;Jj(d+784+(j*48|0)+16|0,i&255|0,16)|0;Jj(d+784+(j*48|0)|0,(j<<1)+4+i&255|0,16)|0;j=j+1|0}while((j|0)!=64)}else{j=0;do{l=j>>k;i=(l|0)>1?l:1;Jj(d+784+(j*48|0)+16|0,i&255|0,16)|0;Jj(d+784+(j*48|0)|0,(j<<1)+4+i&255|0,16)|0;j=j+1|0}while((j|0)!=64)}c[g>>2]=c[h>>2]}h=d+3980|0;g=d+3956|0;j=d+3958|0;k=d+3983|0;i=d+3959|0;l=d+3966|0;m=d+3967|0;n=d+3960|0;o=d+3961|0;p=0;do{if((a[h>>0]|0)!=0?(c[d+4060+(p<<2)>>2]&2|0)!=0:0){q=((a[k>>0]|0)==1?0:e)+(b[d+3996+(p<<3)+2>>1]|0)|0;r=(q|0)<0?0:(q|0)<63?q:63}else r=e;if(!(a[g>>0]|0))Jj(d+3856+(p<<3)|0,r&255|0,8)|0;else{q=(a[j>>0]<<f)+r|0;a[d+3856+(p<<3)>>0]=(q|0)<0?0:((q|0)<63?q:63)&255;q=(a[i>>0]<<f)+r|0;s=a[l>>0]<<f;t=q+s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=q&65535&P;ia=ha&65535;b[p>>1]=ia;ja=g+64|0;ka=ja;la=c[ka+4>>2]&R;R=ja;c[R>>2]=c[ka>>2]&Q;c[R+4>>2]=la;la=g+88|0;b[la>>1]=(e[la>>1]|0)&P;switch(O|0){case 1:{O=ba|ha;b[L>>1]=O;b[p>>1]=0;ma=S;na=T;oa=U;pa=V;qa=W;ra=X;sa=Y;ta=Z;ua=_;va=$;wa=aa;xa=O;ya=ca;za=da;Aa=ea;Ba=fa;Ca=ga;Da=0;break a;break}case 5:{O=ba|ha&65280;b[L>>1]=O;P=((ha|255)^65280)&ha&65535;b[p>>1]=P;ma=S;na=T;oa=U;pa=V;qa=W;ra=X;sa=Y;ta=Z;ua=_;va=$;wa=aa;xa=O;ya=ca;za=da;Aa=ea;Ba=fa;Ca=ga;Da=P;break a;break}default:{ma=S;na=T;oa=U;pa=V;qa=W;ra=X;sa=Y;ta=Z;ua=_;va=$;wa=aa;xa=ba;ya=ca;za=da;Aa=ea;Ba=fa;Ca=ga;Da=ia;break a}}}else{ma=u;na=s;oa=A;pa=y;qa=E;ra=N;sa=v;ta=w;ua=B;va=C;wa=H;xa=M;ya=k;za=l;Aa=n;Ba=o;Ca=m;Da=q}while(0);q=c[a+608>>2]|0;b:do if((f+8|0)>(q|0)){a=q-f|0;m=((a|0)<0)<<31>>31;o=(1<<a)+-1|0;n=Vj(o|0,((o|0)<0)<<31>>31|0,16843009,16843009)|0;o=D;l=Kj(a|0,m|0,1,0)|0;k=Nj(l|0,D|0,1)|0;l=(4369<<k)+61167|0;k=Nj(a|0,m|0,1)|0;m=ma&n;M=na&o;H=g;c[H>>2]=m;c[H+4>>2]=M;H=t;c[H>>2]=oa&n;c[H+4>>2]=pa&o;H=qa&65535&l&65535;b[z>>1]=H;b[J>>1]=ra&l;C=sa&n;B=ta&o;w=r;c[w>>2]=C;c[w+4>>2]=B;w=x;c[w>>2]=ua&n;c[w+4>>2]=va&o;w=wa&65535&l;v=w&65535;b[F>>1]=v;b[L>>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&(_|0)==0;if((d[29046+Z>>0]|0)>1)aa=((d[29072+Z>>0]|0)+-1&f|0)==0&1;else aa=1;ba=Y&(aa|0)==0;ca=a[(c[r>>2]|0)+(29207+(Z<<4)+(d[X+2>>0]<<2)+(c[p>>2]<<1))>>0]|0;Z=(T|0)==(Q|0)&D;T=a[(c[19716+(d[X+1>>0]<<2)>>2]|0)+(b+3856+(a[X+4>>0]<<3)+(a[X+8>>0]<<1))>>0]|0;X=N>>q;a[o+(X+J)>>0]=T;a:do if(!(T<<24>>24)){da=M;ea=R;fa=S}else switch(ca<<24>>24){case 3:{do if((X&3|0)==0&($^1)){ga=1<<X;if(Z){ha=M;ia=ga|S;break}else{ha=ga|M;ia=S;break}}else{ha=M;ia=S}while(0);if(ba|L^1){da=ha;ea=R;fa=ia;break a}c[I>>2]=c[I>>2]|1<<X;da=ha;ea=R;fa=ia;break a;break}case 2:{do if((X&1|0)==0&($^1)){ga=1<<X;if(Z){ja=M;ka=ga|S;break}else{ja=ga|M;ka=S;break}}else{ja=M;ka=S}while(0);if(ba|O^1){da=ja;ea=R;fa=ka;break a}c[H>>2]=c[H>>2]|1<<X;da=ja;ea=R;fa=ka;break a;break}default:{do if(!$){ga=1<<X;if((X&3|0)==0|ca<<24>>24==1){la=R;ma=ga|S;break}else{la=ga|R;ma=S;break}}else{la=R;ma=S}while(0);if(!ba){ga=(L|ca<<24>>24==1?k:m)+(f<<2)|0;c[ga>>2]=c[ga>>2]|1<<X}if(Y|(ca<<24>>24!=0|Z)){da=M;ea=la;fa=ma;break a}c[K>>2]=c[K>>2]|1<<X;da=M;ea=la;fa=ma;break a}}while(0);N=N+u|0;if((N|0)>=8){U=da;V=ea;W=fa;break}else{M=da;R=ea;S=fa}}S=c[C>>2]|0;R=U&B;M=W&B;N=V&B;L=c[K>>2]|0;H=M|N|R|L;if(!H){na=S;oa=F}else{O=o+J|0;I=H;H=R;R=N;N=L;L=M;M=F;while(1){Q=d[O>>0]|0;P=b+784+(Q*48|0)|0;do if(I&1|0){if(H&1|0){Rd(M,S,P,b+784+(Q*48|0)+16|0,b+784+(Q*48|0)+32|0);break}if(L&1|0){Ld(M,S,P,b+784+(Q*48|0)+16|0,b+784+(Q*48|0)+32|0);break}if(R&1|0)Gd(M,S,P,b+784+(Q*48|0)+16|0,b+784+(Q*48|0)+32|0)}while(0);if(N&1|0)Gd(M+4|0,S,P,b+784+(Q*48|0)+16|0,b+784+(Q*48|0)+32|0);I=I>>>1;if(!I)break;else{O=O+1|0;H=H>>>1;R=R>>>1;N=N>>>1;L=L>>>1;M=M+8|0}}na=c[C>>2]|0;oa=c[w>>2]|0}F=oa+(na<<3)|0;c[w>>2]=F;f=f+t|0;if((f|0)>=8)break;else G=G+(v<<2)|0}c[w>>2]=x;x=b+784|0;if(A){A=e;b=0;while(1){v=b+g|0;if((v|0)>=(c[y>>2]|0)){pa=59;break}if(!v){qa=0;ra=0;sa=0}else{qa=c[j+(b<<2)>>2]|0;ra=c[m+(b<<2)>>2]|0;sa=c[k+(b<<2)>>2]|0}Bf(A,c[C>>2]|0,qa,sa,ra,c[n+(b<<2)>>2]|0,x,o+(b<<3)|0);A=(c[w>>2]|0)+(c[C>>2]<<3)|0;c[w>>2]=A;b=b+t|0;if((b|0)>=8){pa=59;break}}if((pa|0)==59){l=i;return}}else{ta=e;ua=0}while(1){e=ua+g|0;b=c[y>>2]|0;if((e|0)>=(b|0)){pa=59;break}if((e|0)==(b+-1|0))va=0;else va=c[n+(ua<<2)>>2]|0;if(!e){wa=0;xa=0;ya=0}else{wa=c[j+(ua<<2)>>2]|0;xa=c[m+(ua<<2)>>2]|0;ya=c[k+(ua<<2)>>2]|0}Bf(ta,c[C>>2]|0,wa,ya,xa,va,x,o+(ua<<3)|0);ta=(c[w>>2]|0)+(c[C>>2]<<3)|0;c[w>>2]=ta;ua=ua+t|0;if((ua|0)>=8){pa=59;break}}if((pa|0)==59){l=i;return}}function Bf(a,b,c,e,f,g,h,i){a=a|0;b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;j=e|c|f|g;if(!j)return;k=b<<2;l=i;i=j;j=c;c=f;f=g;g=e;e=a;while(1){do if(i&1){a=d[l>>0]|0;m=h+(a*48|0)|0;if(j&1|0){n=h+(a*48|0)+16|0;o=h+(a*48|0)+32|0;if((j&3|0)==3){Qd(e,b,m,n,o);p=2;break}else{Nd(e,b,m,n,o);p=1;break}}if(g&1|0){if((g&3|0)!=3){o=h+(a*48|0)+16|0;n=h+(a*48|0)+32|0;Id(e,b,m,o,n);if(!(f&1)){p=1;break}Ed(e+k|0,b,m,o,n);p=1;break}n=d[l+1>>0]|0;o=h+(a*48|0)+16|0;q=h+(a*48|0)+32|0;r=h+(n*48|0)|0;s=h+(n*48|0)+16|0;t=h+(n*48|0)+32|0;Kd(e,b,m,o,q,r,s,t);if((f&3|0)==3){Fd(e+k|0,b,m,o,q,r,s,t);p=2;break}if(f&1|0){Ed(e+k|0,b,m,o,q);p=2;break}if(!(f&2)){p=2;break}Ed(e+8+k|0,b,r,s,t);p=2;break}if(!(c&1)){Ed(e+k|0,b,m,h+(a*48|0)+16|0,h+(a*48|0)+32|0);p=1;break}if((c&3|0)!=3){t=h+(a*48|0)+16|0;s=h+(a*48|0)+32|0;Ed(e,b,m,t,s);if(!(f&1)){p=1;break}Ed(e+k|0,b,m,t,s);p=1;break}s=d[l+1>>0]|0;t=h+(a*48|0)+16|0;r=h+(a*48|0)+32|0;a=h+(s*48|0)|0;q=h+(s*48|0)+16|0;o=h+(s*48|0)+32|0;Fd(e,b,m,t,r,a,q,o);if((f&3|0)==3){Fd(e+k|0,b,m,t,r,a,q,o);p=2;break}if(f&1|0){Ed(e+k|0,b,m,t,r);p=2;break}if(!(f&2))p=2;else{Ed(e+8+k|0,b,a,q,o);p=2}}else p=1;while(0);i=i>>>p;if(!i)break;else{l=l+p|0;j=j>>>p;c=c>>>p;f=f>>>p;g=g>>>p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0;q=c[n+4>>2]|0;n=0;while(1){j=n+d|0;if((j|0)>=(c[o>>2]|0)){z=8;break}if(!j){A=0;B=0;C=0}else{A=h&255;B=v&255;C=l&255}Bf(r,c[s>>2]|0,A,C,B,w&255,b,(n<<3)+(e+90)|0);r=(c[f>>2]|0)+(c[s>>2]<<3)|0;c[f>>2]=r;h=Nj(h|0,a|0,8)|0;a=D;l=Nj(l|0,g|0,8)|0;g=D;v=Nj(v|0,x|0,8)|0;x=D;w=Nj(w|0,q|0,8)|0;n=n+1|0;if((n|0)>=8){z=8;break}else q=D}if((z|0)==8)return}function Df(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;m=l;l=l+16|0;n=m+8|0;o=m;p=(a|0)!=0;a=p?4:8;q=1<<a;r=q|1;c[n>>2]=b;s=(g|f|h|i)&(p?255:65535);if(!s){l=m;return}p=q^-2;q=o+4|0;t=e<<3;u=n+4|0;v=b;b=k;k=s;s=f;f=h;h=i;i=g;while(1){if(k&r|0){g=d[b>>0]|0;w=j+(g*48|0)|0;c[o>>2]=w;x=d[b+a>>0]|0;y=j+(x*48|0)|0;c[q>>2]=y;c[u>>2]=v+t;z=s&r;do if(z|0)if((z|0)==(r|0)){Td(v,e,w,j+(g*48|0)+16|0,j+(g*48|0)+32|0);break}else{A=s&1^1;B=c[o+(A<<2)>>2]|0;Rd(c[n+(A<<2)>>2]|0,e,B,B+16|0,B+32|0);break}while(0);z=i&r;do if(z|0)if((z|0)==(r|0)){Md(v,e,w,j+(g*48|0)+16|0,j+(g*48|0)+32|0,y,j+(x*48|0)+16|0,j+(x*48|0)+32|0);break}else{B=i&1^1;A=c[o+(B<<2)>>2]|0;Ld(c[n+(B<<2)>>2]|0,e,A,A+16|0,A+32|0);break}while(0);z=f&r;do if(z|0)if((z|0)==(r|0)){Hd(v,e,w,j+(g*48|0)+16|0,j+(g*48|0)+32|0,y,j+(x*48|0)+16|0,j+(x*48|0)+32|0);break}else{A=f&1^1;B=c[o+(A<<2)>>2]|0;Gd(c[n+(A<<2)>>2]|0,e,B,B+16|0,B+32|0);break}while(0);z=h&r;do if(z|0)if((z|0)==(r|0)){Hd(v+4|0,e,w,j+(g*48|0)+16|0,j+(g*48|0)+32|0,y,j+(x*48|0)+16|0,j+(x*48|0)+32|0);break}else{B=h&1^1;A=c[o+(B<<2)>>2]|0;Gd((c[n+(B<<2)>>2]|0)+4|0,e,A,A+16|0,A+32|0);break}while(0)}v=v+8|0;c[n>>2]=v;k=(k&p)>>>1;if(!k)break;else{b=b+1|0;s=s>>>1;f=f>>>1;h=h>>>1;i=i>>>1}}l=m;return}function Ef(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;h=l;l=l+16|0;i=h;j=e+12|0;k=c[j>>2]|0;m=b[g+76>>1]|0;n=b[g+74>>1]|0;o=b[g+72>>1]|0;p=g+88|0;q=b[p>>1]|0;r=d+600|0;s=e+4|0;t=e+16|0;e=d+784|0;d=k;if((c[r>>2]|0)>(f|0)?(a[i>>0]=a[g+90>>0]|0,a[i+4>>0]=a[g+106>>0]|0,a[i+1>>0]=a[g+92>>0]|0,a[i+5>>0]=a[g+108>>0]|0,a[i+2>>0]=a[g+94>>0]|0,a[i+6>>0]=a[g+110>>0]|0,a[i+3>>0]=a[g+96>>0]|0,a[i+7>>0]=a[g+112>>0]|0,Df(c[s>>2]|0,d,c[t>>2]|0,m&65535,n&65535,o&65535,q&65535,e,i),u=c[t>>2]|0,v=(c[j>>2]|0)+(u<<4)|0,c[j>>2]=v,(f+4|0)<(c[r>>2]|0)):0){w=i+8|0;a[w>>0]=a[g+122>>0]|0;a[i+12>>0]=a[g+138>>0]|0;a[i+9>>0]=a[g+124>>0]|0;a[i+13>>0]=a[g+140>>0]|0;a[i+10>>0]=a[g+126>>0]|0;a[i+14>>0]=a[g+142>>0]|0;a[i+11>>0]=a[g+128>>0]|0;a[i+15>>0]=a[g+144>>0]|0;Df(c[s>>2]|0,v,u,(m&65535)>>>8&65535,(n&65535)>>>8&65535,(o&65535)>>>8&65535,(q&65535)>>>8&65535,e,w);c[j>>2]=(c[j>>2]|0)+(c[t>>2]<<4)}c[j>>2]=k;k=d;d=b[g+84>>1]|0;w=b[g+80>>1]|0;q=b[p>>1]|0;p=b[g+82>>1]|0;g=0;while(1){o=g+f|0;n=c[r>>2]|0;if((o|0)>=(n|0)){x=6;break}m=(o|0)==0;Bf(k,c[t>>2]|0,m?0:d&15,m?0:p&15,m?0:w&15,(o|0)==(n+-1|0)?0:q&15,e,i+(g<<1)|0);k=(c[j>>2]|0)+(c[t>>2]<<3)|0;c[j>>2]=k;g=g+2|0;if((g|0)>=8){x=6;break}else{d=(d&65535)>>>4;w=(w&65535)>>>4;q=(q&65535)>>>4;p=(p&65535)>>>4}}if((x|0)==6){l=h;return}}function Ff(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=(g|0)!=0;g=h?1:3;a:do if(h)i=1;else{switch(c[d+96>>2]|0){case 1:{if((c[d+92>>2]|0)==1){i=0;break a}break}case 0:{if(!(c[d+92>>2]|0)){i=1;break a}break}default:{}}i=2}while(0);if((e|0)>=(f|0))return;j=b+736|0;k=b+612|0;l=b+3972|0;m=b+3976|0;n=b+608|0;o=(i&3)==2;p=c[n>>2]|0;q=e;while(1){e=(c[j>>2]|0)+((S(c[k>>2]|0,q)|0)<<2)|0;if((p|0)>0){r=(c[l>>2]|0)+((S(c[m>>2]|0,q>>3)|0)*160|0)|0;s=0;while(1){Uf(d,a,q,s);zf(b,q,s,r);Cf(b,d,q,r);if(!h){t=e+(s<<2)|0;switch(i&3){case 0:{u=1;do{Ef(b,d+(u*88|0)|0,q,r);u=u+1|0}while((u|0)<(g|0));break}case 1:{u=1;do{Cf(b,d+(u*88|0)|0,q,r);u=u+1|0}while((u|0)<(g|0));break}default:{u=1;do{if(o)Af(b,d+(u*88|0)|0,t,q,s);u=u+1|0}while((u|0)<(g|0))}}}s=s+8|0;u=c[n>>2]|0;if((s|0)>=(u|0)){v=u;break}else r=r+160|0}}else v=p;q=q+8|0;if((q|0)>=(f|0))break;else p=v}return}function Gf(f,g,h,i,j,k){f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;l=a[g+2>>0]|0;m=g+8|0;n=a[(c[19716+(d[g+1>>0]<<2)>>2]|0)+(f+3856+(a[g+4>>0]<<3)+(a[m>>0]<<1))>>0]|0;o=d[g>>0]|0;p=l&255;q=a[29207+(o<<4)+(p<<2)+3>>0]|0;r=c[f+3972>>2]|0;s=(S(c[f+3976>>2]|0,h>>3)|0)+(i>>3)|0;f=r+(s*160|0)+(p<<3)|0;t=r+(s*160|0)+32+(p<<3)|0;u=r+(s*160|0)+64|0;v=q&255;w=r+(s*160|0)+72+(v<<1)|0;x=r+(s*160|0)+80+(v<<1)|0;y=r+(s*160|0)+88|0;z=h&7;h=i&7;i=h|z<<3;A=h>>>1|z>>>1<<2;B=a[28826+(z<<3)+h>>0]|0;if(!(n<<24>>24))return;if((k|0)>0){h=0;z=i;while(1){Jj(r+(s*160|0)+90+z|0,n|0,j|0)|0;h=h+1|0;if((h|0)==(k|0))break;else z=z+8|0}}z=19088+(o<<3)|0;k=Mj(c[z>>2]|0,c[z+4>>2]|0,i|0)|0;z=t;h=c[z+4>>2]|D;j=t;c[j>>2]=c[z>>2]|k;c[j+4>>2]=h;h=19192+(o<<3)|0;j=Mj(c[h>>2]|0,c[h+4>>2]|0,i|0)|0;h=f;k=c[h+4>>2]|D;z=f;c[z>>2]=c[h>>2]|j;c[z+4>>2]=k;k=B<<24>>24!=0;if(k){b[x>>1]=e[x>>1]|e[21496+(o<<1)>>1]<<A;b[w>>1]=e[w>>1]|e[21522+(o<<1)>>1]<<A}if(a[g+3>>0]|0?(a[m>>0]|0)>0:0)return;m=19296+(o<<3)|0;g=c[m>>2]|0;B=c[m+4>>2]|0;m=19400+(p<<3)|0;z=Mj(c[m>>2]&g|0,c[m+4>>2]&B|0,i|0)|0;m=t;j=D|c[m+4>>2];h=t;c[h>>2]=z|c[m>>2];c[h+4>>2]=j;j=19432+(p<<3)|0;p=Mj(c[j>>2]&g|0,c[j+4>>2]&B|0,i|0)|0;j=f;h=D|c[j+4>>2];m=f;c[m>>2]=p|c[j>>2];c[m+4>>2]=h;if(k){h=b[21548+(o<<1)>>1]|0;b[x>>1]=(b[21574+(v<<1)>>1]&h&65535)<<A|e[x>>1];b[w>>1]=(b[21582+(v<<1)>>1]&h&65535)<<A|e[w>>1]}if(!(l<<24>>24)){l=Mj(g|0,B|0,i|0)|0;i=u;B=c[i+4>>2]|D;g=u;c[g>>2]=c[i>>2]|l;c[g+4>>2]=B}if(!(q<<24>>24==0&k))return;b[y>>1]=e[y>>1]|e[21548+(o<<1)>>1]<<A;return}function Hf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a>>2]=b;c[a+4>>2]=d;c[a+272>>2]=0;c[a+276>>2]=0;c[a+280>>2]=0;Qj(a+8|0,e|0,264)|0;return}function If(a){a=a|0;if(!(c[a+3940>>2]|0))return;Jj(c[a+3972>>2]|0,0,S((c[a+3976>>2]|0)*160|0,(c[a+600>>2]|0)+7>>3)|0)|0;return}function Jf(a,b){a=a|0;b=b|0;Ff(c[a>>2]|0,c[a+4>>2]|0,a+8|0,c[a+272>>2]|0,c[a+276>>2]|0,c[a+280>>2]|0);return 1}function Kf(a,b,d,e,f,g,h,i,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;if(!e)return;k=b+600|0;l=c[k>>2]|0;if((g|0)!=0&(l|0)>8){m=(l|0)>71?l>>>3:8;n=l>>>1&2147483640}else{m=l;n=0}l=m+n|0;yf(b,e);e=we()|0;m=(c[k>>2]|0)+7>>3;k=1<<c[b+17368>>2];g=(k|0)>(i|0)?i:k;if(!(((c[j+12>>2]|0)!=0?(m|0)==(c[j+16>>2]|0):0)?(g|0)<=(c[j+24>>2]|0):0)){Lf(j);Mf(j,b,m,c[b+256>>2]|0,g)}Jj(c[j+8>>2]|0,-1,m<<2|0)|0;if((g|0)<=0)return;m=j+20|0;k=g+-1|0;i=e+16|0;o=e+12|0;p=0;do{q=h+(p*24|0)|0;r=c[m>>2]|0;s=r+(p*284|0)|0;c[h+(p*24|0)+8>>2]=21;c[h+(p*24|0)+12>>2]=j;c[h+(p*24|0)+16>>2]=s;Hf(s,a,b,d);c[r+(p*284|0)+272>>2]=(p<<3)+n;c[r+(p*284|0)+276>>2]=l;c[r+(p*284|0)+280>>2]=f;if((p|0)==(k|0))zb[c[i>>2]&31](q);else zb[c[o>>2]&31](q);p=p+1|0}while((p|0)<(g|0));p=e+8|0;e=0;do{Bb[c[p>>2]&7](h+(e*24|0)|0)|0;e=e+1|0}while((e|0)<(g|0));return}function Lf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0;if(!a)return;b=c[a>>2]|0;if(b|0){d=a+16|0;if((c[d>>2]|0)>0){e=0;do e=e+1|0;while((e|0)<(c[d>>2]|0));f=c[a>>2]|0}else f=b;Yb(f)}f=a+4|0;b=c[f>>2]|0;if(b|0){d=a+16|0;if((c[d>>2]|0)>0){e=b;g=0;while(1){pj(e+(g*48|0)|0)|0;g=g+1|0;h=c[f>>2]|0;if((g|0)>=(c[d>>2]|0)){i=h;break}else e=h}}else i=b;Yb(i)}Yb(c[a+20>>2]|0);Yb(c[a+8>>2]|0);c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;return}function Mf(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;g=l;l=l+32|0;h=g+24|0;i=g+16|0;j=g+8|0;c[a+16>>2]=d;k=Wb(d*28|0)|0;c[a>>2]=k;if(!k){Ub(b,2,28890,g);m=c[a>>2]|0;n=m;o=m}else{n=k;o=k}k=(d|0)>0;if((n|0)!=0&k?(Aj(o,0)|0,(d|0)!=1):0){o=1;do{Aj((c[a>>2]|0)+(o*28|0)|0,0)|0;o=o+1|0}while((o|0)!=(d|0))}o=Wb(d*48|0)|0;n=a+4|0;c[n>>2]=o;if(!o){Ub(b,2,28925,j);j=c[n>>2]|0;p=j;q=j}else{p=o;q=o}if((p|0)!=0&k?(qj(q,0)|0,(d|0)!=1):0){q=1;do{qj((c[n>>2]|0)+(q*48|0)|0,0)|0;q=q+1|0}while((q|0)!=(d|0))}q=Wb(f*284|0)|0;c[a+20>>2]=q;if(!q)Ub(b,2,28959,i);c[a+24>>2]=f;f=Wb(d<<2)|0;c[a+8>>2]=f;if(f|0){r=(e|0)<640;s=(e|0)<1281;t=(e|0)<4097;u=t?4:8;v=s?2:u;w=r?1:v;x=a+12|0;c[x>>2]=w;l=g;return}Ub(b,2,28994,h);r=(e|0)<640;s=(e|0)<1281;t=(e|0)<4097;u=t?4:8;v=s?2:u;w=r?1:v;x=a+12|0;c[x>>2]=w;l=g;return}function Nf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;d=c[b>>2]|0;e=c[b+4>>2]|0;f=b+8|0;g=c[b+272>>2]|0;h=c[b+276>>2]|0;i=(c[b+280>>2]|0)!=0;j=i?1:3;k=e+608|0;l=c[k>>2]|0;m=l+7>>3;a:do if(i)n=1;else{switch(c[b+104>>2]|0){case 1:{if((c[b+100>>2]|0)==1){n=0;break a}break}case 0:{if(!(c[b+100>>2]|0)){n=1;break a}break}default:{}}n=2}while(0);if((g|0)>=(h|0))return 1;o=e+736|0;p=e+612|0;q=e+3972|0;r=e+3976|0;s=a+24|0;t=a+12|0;u=m+-1|0;v=a+8|0;w=a+4|0;x=l;l=g;while(1){g=(c[o>>2]|0)+((S(c[p>>2]|0,l)|0)<<2)|0;y=l>>3;if((x|0)>0){z=(y|0)==0;A=y+-1|0;B=(c[q>>2]|0)+((S(c[r>>2]|0,y)|0)*160|0)|0;C=0;while(1){D=C>>3;E=c[t>>2]|0;if(!z?(E+-1&D|0)==0:0){F=(c[a>>2]|0)+(A*28|0)|0;G=0;while(1){G=G+1|0;if(!(ij(F)|0))break;if((G|0)>=4e3){H=15;break}}if((H|0)==15){H=0;cj(F)|0}if(((c[(c[v>>2]|0)+(A<<2)>>2]|0)-E|0)<(D|0))do wj((c[w>>2]|0)+(A*48|0)|0,F)|0;while(((c[(c[v>>2]|0)+(A<<2)>>2]|0)-E|0)<(D|0));$i(F)|0}Uf(f,d,l,C);zf(e,l,C,B);Cf(e,f,l,B);b:do if(!i){E=g+(C<<2)|0;switch(n&3){case 0:{G=1;do{Ef(e,b+8+(G*88|0)|0,l,B);G=G+1|0}while((G|0)<(j|0));break}case 1:{G=1;do{Cf(e,b+8+(G*88|0)|0,l,B);G=G+1|0}while((G|0)<(j|0));break}case 2:{G=1;do{Af(e,b+8+(G*88|0)|0,E,l,C);G=G+1|0}while((G|0)<(j|0));break}default:break b}}while(0);F=c[t>>2]|0;if((u|0)>(D|0)){if(!((D|0)%(F|0)|0)){I=D;H=27}}else{I=F+m|0;H=27}if((H|0)==27){H=0;F=(c[a>>2]|0)+(y*28|0)|0;G=0;while(1){G=G+1|0;if(!(ij(F)|0))break;if((G|0)>=4e3){H=30;break}}if((H|0)==30){H=0;cj(F)|0}c[(c[v>>2]|0)+(y<<2)>>2]=I;rj((c[w>>2]|0)+(y*48|0)|0)|0;$i((c[a>>2]|0)+(y*28|0)|0)|0}C=C+8|0;G=c[k>>2]|0;if((C|0)>=(G|0)){J=G;break}else B=B+160|0}}else J=x;l=(c[s>>2]<<3)+l|0;if((l|0)>=(h|0))break;else x=J}return 1}function Of(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;e=0;do{f=a+(e*40|0)|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)>>2]|0);f=a+(e*40|0)+4|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)+4>>2]|0);f=a+(e*40|0)+8|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)+8>>2]|0);f=a+(e*40|0)+12|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)+12>>2]|0);f=a+(e*40|0)+16|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)+16>>2]|0);f=a+(e*40|0)+20|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)+20>>2]|0);f=a+(e*40|0)+24|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)+24>>2]|0);f=a+(e*40|0)+28|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)+28>>2]|0);f=a+(e*40|0)+32|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)+32>>2]|0);f=a+(e*40|0)+36|0;c[f>>2]=(c[f>>2]|0)+(c[b+(e*40|0)+36>>2]|0);e=e+1|0}while((e|0)!=4);g=0;do{e=a+160+(g*40|0)|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)>>2]|0);e=a+160+(g*40|0)+4|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)+4>>2]|0);e=a+160+(g*40|0)+8|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)+8>>2]|0);e=a+160+(g*40|0)+12|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)+12>>2]|0);e=a+160+(g*40|0)+16|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)+16>>2]|0);e=a+160+(g*40|0)+20|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)+20>>2]|0);e=a+160+(g*40|0)+24|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)+24>>2]|0);e=a+160+(g*40|0)+28|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)+28>>2]|0);e=a+160+(g*40|0)+32|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)+32>>2]|0);e=a+160+(g*40|0)+36|0;c[e>>2]=(c[e>>2]|0)+(c[b+160+(g*40|0)+36>>2]|0);g=g+1|0}while((g|0)!=10);h=0;do{g=a+560+(h<<4)|0;c[g>>2]=(c[g>>2]|0)+(c[b+560+(h<<4)>>2]|0);g=a+560+(h<<4)+4|0;c[g>>2]=(c[g>>2]|0)+(c[b+560+(h<<4)+4>>2]|0);g=a+560+(h<<4)+8|0;c[g>>2]=(c[g>>2]|0)+(c[b+560+(h<<4)+8>>2]|0);g=a+560+(h<<4)+12|0;c[g>>2]=(c[g>>2]|0)+(c[b+560+(h<<4)+12>>2]|0);h=h+1|0}while((h|0)!=16);if(!d){d=0;do{h=0;do{g=0;do{e=a+10032+(d*576|0)+(h*288|0)+(g*24|0)|0;c[e>>2]=(c[e>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+(g*24|0)>>2]|0);e=a+10032+(d*576|0)+(h*288|0)+(g*24|0)+4|0;c[e>>2]=(c[e>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+(g*24|0)+4>>2]|0);e=a+10032+(d*576|0)+(h*288|0)+(g*24|0)+8|0;c[e>>2]=(c[e>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+(g*24|0)+8>>2]|0);e=a+10032+(d*576|0)+(h*288|0)+(g*24|0)+12|0;c[e>>2]=(c[e>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+(g*24|0)+12>>2]|0);e=a+10032+(d*576|0)+(h*288|0)+(g*24|0)+16|0;c[e>>2]=(c[e>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+(g*24|0)+16>>2]|0);e=a+10032+(d*576|0)+(h*288|0)+(g*24|0)+20|0;c[e>>2]=(c[e>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+(g*24|0)+20>>2]|0);g=g+1|0}while((g|0)!=6);i=0;do{g=a+10032+(d*576|0)+(h*288|0)+144+(i*24|0)|0;c[g>>2]=(c[g>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+144+(i*24|0)>>2]|0);g=a+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+4|0;c[g>>2]=(c[g>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+4>>2]|0);g=a+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+8|0;c[g>>2]=(c[g>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+8>>2]|0);g=a+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+12|0;c[g>>2]=(c[g>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+12>>2]|0);g=a+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+16|0;c[g>>2]=(c[g>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+16>>2]|0);g=a+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+20|0;c[g>>2]=(c[g>>2]|0)+(c[b+10032+(d*576|0)+(h*288|0)+144+(i*24|0)+20>>2]|0);i=i+1|0}while((i|0)!=6);h=h+1|0}while((h|0)!=2);d=d+1|0}while((d|0)!=4)}else{d=0;do{i=0;do{h=0;do{g=0;do{e=a+10032+(d*576|0)+(i*288|0)+(h*24|0)+(g<<2)|0;c[e>>2]=(c[e>>2]|0)+(c[b+10032+(d*576|0)+(i*288|0)+(h*24|0)+(g<<2)>>2]|0);e=a+816+(d*2304|0)+(i*1152|0)+(h*96|0)+(g<<4)|0;c[e>>2]=(c[e>>2]|0)+(c[b+816+(d*2304|0)+(i*1152|0)+(h*96|0)+(g<<4)>>2]|0);e=a+816+(d*2304|0)+(i*1152|0)+(h*96|0)+(g<<4)+4|0;c[e>>2]=(c[e>>2]|0)+(c[b+816+(d*2304|0)+(i*1152|0)+(h*96|0)+(g<<4)+4>>2]|0);e=a+816+(d*2304|0)+(i*1152|0)+(h*96|0)+(g<<4)+8|0;c[e>>2]=(c[e>>2]|0)+(c[b+816+(d*2304|0)+(i*1152|0)+(h*96|0)+(g<<4)+8>>2]|0);e=a+816+(d*2304|0)+(i*1152|0)+(h*96|0)+(g<<4)+12|0;c[e>>2]=(c[e>>2]|0)+(c[b+816+(d*2304|0)+(i*1152|0)+(h*96|0)+(g<<4)+12>>2]|0);g=g+1|0}while((g|0)!=6);h=h+1|0}while((h|0)!=6);j=0;do{h=0;do{g=a+10032+(d*576|0)+(i*288|0)+144+(j*24|0)+(h<<2)|0;c[g>>2]=(c[g>>2]|0)+(c[b+10032+(d*576|0)+(i*288|0)+144+(j*24|0)+(h<<2)>>2]|0);g=a+816+(d*2304|0)+(i*1152|0)+576+(j*96|0)+(h<<4)|0;c[g>>2]=(c[g>>2]|0)+(c[b+816+(d*2304|0)+(i*1152|0)+576+(j*96|0)+(h<<4)>>2]|0);g=a+816+(d*2304|0)+(i*1152|0)+576+(j*96|0)+(h<<4)+4|0;c[g>>2]=(c[g>>2]|0)+(c[b+816+(d*2304|0)+(i*1152|0)+576+(j*96|0)+(h<<4)+4>>2]|0);g=a+816+(d*2304|0)+(i*1152|0)+576+(j*96|0)+(h<<4)+8|0;c[g>>2]=(c[g>>2]|0)+(c[b+816+(d*2304|0)+(i*1152|0)+576+(j*96|0)+(h<<4)+8>>2]|0);g=a+816+(d*2304|0)+(i*1152|0)+576+(j*96|0)+(h<<4)+12|0;c[g>>2]=(c[g>>2]|0)+(c[b+816+(d*2304|0)+(i*1152|0)+576+(j*96|0)+(h<<4)+12>>2]|0);h=h+1|0}while((h|0)!=6);j=j+1|0}while((j|0)!=6);i=i+1|0}while((i|0)!=2);d=d+1|0}while((d|0)!=4)}d=a+12336|0;c[d>>2]=(c[d>>2]|0)+(c[b+12336>>2]|0);d=a+12340|0;c[d>>2]=(c[d>>2]|0)+(c[b+12340>>2]|0);d=a+12344|0;c[d>>2]=(c[d>>2]|0)+(c[b+12344>>2]|0);d=a+12348|0;c[d>>2]=(c[d>>2]|0)+(c[b+12348>>2]|0);d=a+12352|0;c[d>>2]=(c[d>>2]|0)+(c[b+12352>>2]|0);d=a+12356|0;c[d>>2]=(c[d>>2]|0)+(c[b+12356>>2]|0);d=a+12360|0;c[d>>2]=(c[d>>2]|0)+(c[b+12360>>2]|0);d=a+12364|0;c[d>>2]=(c[d>>2]|0)+(c[b+12364>>2]|0);d=a+12368|0;c[d>>2]=(c[d>>2]|0)+(c[b+12368>>2]|0);d=a+12372|0;c[d>>2]=(c[d>>2]|0)+(c[b+12372>>2]|0);d=a+12376|0;c[d>>2]=(c[d>>2]|0)+(c[b+12376>>2]|0);d=a+12380|0;c[d>>2]=(c[d>>2]|0)+(c[b+12380>>2]|0);d=0;do{j=a+12384+(d<<4)|0;c[j>>2]=(c[j>>2]|0)+(c[b+12384+(d<<4)>>2]|0);j=a+12384+(d<<4)+4|0;c[j>>2]=(c[j>>2]|0)+(c[b+12384+(d<<4)+4>>2]|0);j=a+12384+(d<<4)+8|0;c[j>>2]=(c[j>>2]|0)+(c[b+12384+(d<<4)+8>>2]|0);j=a+12384+(d<<4)+12|0;c[j>>2]=(c[j>>2]|0)+(c[b+12384+(d<<4)+12>>2]|0);d=d+1|0}while((d|0)!=7);d=a+12496|0;c[d>>2]=(c[d>>2]|0)+(c[b+12496>>2]|0);d=a+12500|0;c[d>>2]=(c[d>>2]|0)+(c[b+12500>>2]|0);d=a+12504|0;c[d>>2]=(c[d>>2]|0)+(c[b+12504>>2]|0);d=a+12508|0;c[d>>2]=(c[d>>2]|0)+(c[b+12508>>2]|0);d=a+12512|0;c[d>>2]=(c[d>>2]|0)+(c[b+12512>>2]|0);d=a+12516|0;c[d>>2]=(c[d>>2]|0)+(c[b+12516>>2]|0);d=a+12520|0;c[d>>2]=(c[d>>2]|0)+(c[b+12520>>2]|0);d=a+12524|0;c[d>>2]=(c[d>>2]|0)+(c[b+12524>>2]|0);d=a+12528|0;c[d>>2]=(c[d>>2]|0)+(c[b+12528>>2]|0);d=a+12532|0;c[d>>2]=(c[d>>2]|0)+(c[b+12532>>2]|0);d=a+12536|0;c[d>>2]=(c[d>>2]|0)+(c[b+12536>>2]|0);d=a+12540|0;c[d>>2]=(c[d>>2]|0)+(c[b+12540>>2]|0);d=a+12544|0;c[d>>2]=(c[d>>2]|0)+(c[b+12544>>2]|0);d=a+12548|0;c[d>>2]=(c[d>>2]|0)+(c[b+12548>>2]|0);d=a+12552|0;c[d>>2]=(c[d>>2]|0)+(c[b+12552>>2]|0);d=a+12556|0;c[d>>2]=(c[d>>2]|0)+(c[b+12556>>2]|0);d=a+12560|0;c[d>>2]=(c[d>>2]|0)+(c[b+12560>>2]|0);d=a+12564|0;c[d>>2]=(c[d>>2]|0)+(c[b+12564>>2]|0);d=a+12568|0;c[d>>2]=(c[d>>2]|0)+(c[b+12568>>2]|0);d=a+12572|0;c[d>>2]=(c[d>>2]|0)+(c[b+12572>>2]|0);d=a+12576|0;c[d>>2]=(c[d>>2]|0)+(c[b+12576>>2]|0);d=a+12580|0;c[d>>2]=(c[d>>2]|0)+(c[b+12580>>2]|0);d=a+12584|0;c[d>>2]=(c[d>>2]|0)+(c[b+12584>>2]|0);d=a+12588|0;c[d>>2]=(c[d>>2]|0)+(c[b+12588>>2]|0);d=a+12592|0;c[d>>2]=(c[d>>2]|0)+(c[b+12592>>2]|0);d=a+12596|0;c[d>>2]=(c[d>>2]|0)+(c[b+12596>>2]|0);d=a+12600|0;c[d>>2]=(c[d>>2]|0)+(c[b+12600>>2]|0);d=a+12604|0;c[d>>2]=(c[d>>2]|0)+(c[b+12604>>2]|0);d=a+12608|0;c[d>>2]=(c[d>>2]|0)+(c[b+12608>>2]|0);d=a+12612|0;c[d>>2]=(c[d>>2]|0)+(c[b+12612>>2]|0);d=a+12616|0;c[d>>2]=(c[d>>2]|0)+(c[b+12616>>2]|0);d=a+12620|0;c[d>>2]=(c[d>>2]|0)+(c[b+12620>>2]|0);d=a+12624|0;c[d>>2]=(c[d>>2]|0)+(c[b+12624>>2]|0);d=a+12628|0;c[d>>2]=(c[d>>2]|0)+(c[b+12628>>2]|0);d=a+12632|0;c[d>>2]=(c[d>>2]|0)+(c[b+12632>>2]|0);d=a+12636|0;c[d>>2]=(c[d>>2]|0)+(c[b+12636>>2]|0);d=a+12640|0;c[d>>2]=(c[d>>2]|0)+(c[b+12640>>2]|0);d=a+12644|0;c[d>>2]=(c[d>>2]|0)+(c[b+12644>>2]|0);d=a+12648|0;c[d>>2]=(c[d>>2]|0)+(c[b+12648>>2]|0);d=a+12652|0;c[d>>2]=(c[d>>2]|0)+(c[b+12652>>2]|0);d=a+12656|0;c[d>>2]=(c[d>>2]|0)+(c[b+12656>>2]|0);d=a+12660|0;c[d>>2]=(c[d>>2]|0)+(c[b+12660>>2]|0);d=a+12664|0;c[d>>2]=(c[d>>2]|0)+(c[b+12664>>2]|0);d=a+12668|0;c[d>>2]=(c[d>>2]|0)+(c[b+12668>>2]|0);d=a+12672|0;c[d>>2]=(c[d>>2]|0)+(c[b+12672>>2]|0);d=a+12676|0;c[d>>2]=(c[d>>2]|0)+(c[b+12676>>2]|0);d=a+12680|0;c[d>>2]=(c[d>>2]|0)+(c[b+12680>>2]|0);d=a+12684|0;c[d>>2]=(c[d>>2]|0)+(c[b+12684>>2]|0);d=a+12688|0;c[d>>2]=(c[d>>2]|0)+(c[b+12688>>2]|0);d=a+12692|0;c[d>>2]=(c[d>>2]|0)+(c[b+12692>>2]|0);d=a+12696|0;c[d>>2]=(c[d>>2]|0)+(c[b+12696>>2]|0);d=a+12700|0;c[d>>2]=(c[d>>2]|0)+(c[b+12700>>2]|0);d=a+12720|0;c[d>>2]=(c[d>>2]|0)+(c[b+12720>>2]|0);d=a+12724|0;c[d>>2]=(c[d>>2]|0)+(c[b+12724>>2]|0);d=a+12728|0;c[d>>2]=(c[d>>2]|0)+(c[b+12728>>2]|0);d=a+12744|0;c[d>>2]=(c[d>>2]|0)+(c[b+12744>>2]|0);d=a+12748|0;c[d>>2]=(c[d>>2]|0)+(c[b+12748>>2]|0);d=a+12704|0;c[d>>2]=(c[d>>2]|0)+(c[b+12704>>2]|0);d=a+12708|0;c[d>>2]=(c[d>>2]|0)+(c[b+12708>>2]|0);d=a+12712|0;c[d>>2]=(c[d>>2]|0)+(c[b+12712>>2]|0);d=a+12716|0;c[d>>2]=(c[d>>2]|0)+(c[b+12716>>2]|0);d=a+12732|0;c[d>>2]=(c[d>>2]|0)+(c[b+12732>>2]|0);d=a+12736|0;c[d>>2]=(c[d>>2]|0)+(c[b+12736>>2]|0);d=a+12740|0;c[d>>2]=(c[d>>2]|0)+(c[b+12740>>2]|0);d=a+12752|0;c[d>>2]=(c[d>>2]|0)+(c[b+12752>>2]|0);d=a+12756|0;c[d>>2]=(c[d>>2]|0)+(c[b+12756>>2]|0);d=a+12760|0;c[d>>2]=(c[d>>2]|0)+(c[b+12760>>2]|0);d=a+12764|0;c[d>>2]=(c[d>>2]|0)+(c[b+12764>>2]|0);d=a+12768|0;c[d>>2]=(c[d>>2]|0)+(c[b+12768>>2]|0);d=a+12772|0;c[d>>2]=(c[d>>2]|0)+(c[b+12772>>2]|0);d=a+12776|0;c[d>>2]=(c[d>>2]|0)+(c[b+12776>>2]|0);d=a+12780|0;c[d>>2]=(c[d>>2]|0)+(c[b+12780>>2]|0);d=a+12784|0;c[d>>2]=(c[d>>2]|0)+(c[b+12784>>2]|0);d=a+12788|0;c[d>>2]=(c[d>>2]|0)+(c[b+12788>>2]|0);d=a+12792|0;c[d>>2]=(c[d>>2]|0)+(c[b+12792>>2]|0);d=a+12796|0;c[d>>2]=(c[d>>2]|0)+(c[b+12796>>2]|0);d=a+12800|0;c[d>>2]=(c[d>>2]|0)+(c[b+12800>>2]|0);d=a+12804|0;c[d>>2]=(c[d>>2]|0)+(c[b+12804>>2]|0);d=a+12808|0;c[d>>2]=(c[d>>2]|0)+(c[b+12808>>2]|0);d=a+12812|0;c[d>>2]=(c[d>>2]|0)+(c[b+12812>>2]|0);d=0;do{j=a+12816+(d*204|0)|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)>>2]|0);j=a+12816+(d*204|0)+188|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+188>>2]|0);j=a+12816+(d*204|0)+196|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+196>>2]|0);j=a+12816+(d*204|0)+4|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+4>>2]|0);j=a+12816+(d*204|0)+192|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+192>>2]|0);j=a+12816+(d*204|0)+200|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+200>>2]|0);j=a+12816+(d*204|0)+8|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+8>>2]|0);j=a+12816+(d*204|0)+12|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+12>>2]|0);j=a+12816+(d*204|0)+16|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+16>>2]|0);j=a+12816+(d*204|0)+20|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+20>>2]|0);j=a+12816+(d*204|0)+24|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+24>>2]|0);j=a+12816+(d*204|0)+28|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+28>>2]|0);j=a+12816+(d*204|0)+32|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+32>>2]|0);j=a+12816+(d*204|0)+36|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+36>>2]|0);j=a+12816+(d*204|0)+40|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+40>>2]|0);j=a+12816+(d*204|0)+44|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+44>>2]|0);j=a+12816+(d*204|0)+48|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+48>>2]|0);j=a+12816+(d*204|0)+52|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+52>>2]|0);j=a+12816+(d*204|0)+140|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+140>>2]|0);j=a+12816+(d*204|0)+144|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+144>>2]|0);j=a+12816+(d*204|0)+148|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+148>>2]|0);j=a+12816+(d*204|0)+152|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+152>>2]|0);j=a+12816+(d*204|0)+56|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+56>>2]|0);j=a+12816+(d*204|0)+156|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+156>>2]|0);j=a+12816+(d*204|0)+160|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+160>>2]|0);j=a+12816+(d*204|0)+164|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+164>>2]|0);j=a+12816+(d*204|0)+168|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+168>>2]|0);j=a+12816+(d*204|0)+60|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+60>>2]|0);j=a+12816+(d*204|0)+64|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+64>>2]|0);j=a+12816+(d*204|0)+68|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+68>>2]|0);j=a+12816+(d*204|0)+72|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+72>>2]|0);j=a+12816+(d*204|0)+76|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+76>>2]|0);j=a+12816+(d*204|0)+80|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+80>>2]|0);j=a+12816+(d*204|0)+84|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+84>>2]|0);j=a+12816+(d*204|0)+88|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+88>>2]|0);j=a+12816+(d*204|0)+92|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+92>>2]|0);j=a+12816+(d*204|0)+96|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+96>>2]|0);j=a+12816+(d*204|0)+100|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+100>>2]|0);j=a+12816+(d*204|0)+104|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+104>>2]|0);j=a+12816+(d*204|0)+108|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+108>>2]|0);j=a+12816+(d*204|0)+112|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+112>>2]|0);j=a+12816+(d*204|0)+116|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+116>>2]|0);j=a+12816+(d*204|0)+120|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+120>>2]|0);j=a+12816+(d*204|0)+124|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+124>>2]|0);j=a+12816+(d*204|0)+128|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+128>>2]|0);j=a+12816+(d*204|0)+132|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+132>>2]|0);j=a+12816+(d*204|0)+136|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+136>>2]|0);j=a+12816+(d*204|0)+172|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+172>>2]|0);j=a+12816+(d*204|0)+176|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+176>>2]|0);j=a+12816+(d*204|0)+180|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+180>>2]|0);j=a+12816+(d*204|0)+184|0;c[j>>2]=(c[j>>2]|0)+(c[b+12816+(d*204|0)+184>>2]|0);d=d+1|0}while((d|0)!=2);return}function Pf(a,c,d){a=a|0;c=c|0;d=d|0;d=c+a|0;return b[21590+(((d|0)<0?0:(d|0)<255?d:255)<<1)>>1]|0}function Qf(a,c,d){a=a|0;c=c|0;d=d|0;d=c+a|0;return b[22102+(((d|0)<0?0:(d|0)<255?d:255)<<1)>>1]|0}function Rf(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!(a[d>>0]|0)){g=f;return g|0}if(!(c[d+80+(e<<2)>>2]&1)){g=f;return g|0}h=((a[d+3>>0]|0)==1?0:f)+(b[d+16+(e<<3)>>1]|0)|0;g=(h|0)<0?0:(h|0)<255?h:255;return g|0}function Sf(a,d,e,f,g,h,i){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;j=f<<4;f=g<<4;g=1-i|0;i=1-h|0;h=-64-j+(c[d+316>>2]<<i)|0;k=j+48+(c[d+320>>2]<<i)|0;j=-64-f+(c[d+324>>2]<<g)|0;l=f+48+(c[d+328>>2]<<g)|0;d=b[e+2>>1]<<i<<16>>16;i=b[e>>1]<<g<<16>>16;g=((i|0)<(j|0)?j:(i|0)>(l|0)?l:i)&65535|((d|0)<(h|0)?h:(d|0)>(k|0)?k:d)<<16;b[a>>1]=g;b[a+2>>1]=g>>>16;return}function Tf(a,d,f,g,h){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0;switch((((c[d+4>>2]|0)>0&1)<<1|(c[d+8>>2]|0)>0)&3){case 0:{d=f+20+(h*12|0)+4+(g<<2)|0;i=e[d>>1]|e[d+2>>1]<<16;b[a>>1]=i;b[a+2>>1]=i>>>16;return}case 1:{d=f+20+(h*12|0)+4+(g<<2)|0;j=f+20+((h+2|0)*12|0)+4+(g<<2)|0;k=(b[j>>1]|0)+(b[d>>1]|0)|0;l=(b[j+2>>1]|0)+(b[d+2>>1]|0)|0;i=(((l>>31|1)+l|0)/2|0)<<16|(((k>>31|1)+k|0)/2|0)&65535;b[a>>1]=i;b[a+2>>1]=i>>>16;return}case 2:{k=f+20+(h*12|0)+4+(g<<2)|0;l=f+20+((h+1|0)*12|0)+4+(g<<2)|0;h=(b[l>>1]|0)+(b[k>>1]|0)|0;d=(b[l+2>>1]|0)+(b[k+2>>1]|0)|0;i=(((d>>31|1)+d|0)/2|0)<<16|(((h>>31|1)+h|0)/2|0)&65535;b[a>>1]=i;b[a+2>>1]=i>>>16;return}case 3:{h=f+24+(g<<2)|0;d=f+36+(g<<2)|0;k=f+48+(g<<2)|0;l=f+60+(g<<2)|0;g=(b[d>>1]|0)+(b[h>>1]|0)+(b[k>>1]|0)+(b[l>>1]|0)|0;f=(b[d+2>>1]|0)+(b[h+2>>1]|0)+(b[k+2>>1]|0)+(b[l+2>>1]|0)|0;i=(((f>>31&-4|2)+f|0)/4|0)<<16|(((g>>31&-4|2)+g|0)/4|0)&65535;b[a>>1]=i;b[a+2>>1]=i>>>16;return}default:{}}}function Uf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=c[b+56>>2]|0;g=c[b+60>>2]|0;h=c[b+16>>2]|0;i=c[b+36>>2]|0;j=e<<3;e=d<<3;c[a+12>>2]=(c[b+52>>2]|0)+((S(e>>c[a+8>>2],h)|0)+(j>>c[a+4>>2]));c[a+16>>2]=h;c[a+100>>2]=f+((S(e>>c[a+96>>2],i)|0)+(j>>c[a+92>>2]));c[a+104>>2]=i;c[a+188>>2]=g+((S(e>>c[a+184>>2],i)|0)+(j>>c[a+180>>2]));c[a+192>>2]=i;return}
function Fh(d,e,f,g,i){d=d|0;e=e|0;f=f|0;g=g|0;i=i|0;var j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0;j=l;l=l+64|0;k=j+16|0;m=j;n=j+24|0;o=j+8|0;p=j+20|0;c[k>>2]=e;q=(d|0)!=0;r=n+40|0;s=r;t=n+39|0;n=o+4|0;u=e;e=0;v=0;w=0;a:while(1){do if((e|0)>-1)if((v|0)>(2147483647-e|0)){c[(yh()|0)>>2]=75;x=-1;break}else{x=v+e|0;break}else x=e;while(0);y=a[u>>0]|0;if(!(y<<24>>24)){z=87;break}else{A=y;B=u}b:while(1){switch(A<<24>>24){case 37:{C=B;E=B;z=9;break b;break}case 0:{F=B;G=B;break b;break}default:{}}y=B+1|0;c[k>>2]=y;A=a[y>>0]|0;B=y}c:do if((z|0)==9)while(1){z=0;if((a[C+1>>0]|0)!=37){F=C;G=E;break c}y=E+1|0;H=C+2|0;c[k>>2]=H;if((a[H>>0]|0)==37){C=H;E=y;z=9}else{F=H;G=y;break}}while(0);y=G-u|0;if(q)Ih(d,u,y);if(y|0){u=F;e=x;v=y;continue}y=F+1|0;H=(a[y>>0]|0)+-48|0;if(H>>>0<10){I=(a[F+2>>0]|0)==36;J=I?H:-1;K=I?1:w;L=I?F+3|0:y}else{J=-1;K=w;L=y}c[k>>2]=L;y=a[L>>0]|0;I=(y<<24>>24)+-32|0;d:do if(I>>>0<32){H=y;M=0;N=L;O=I;while(1){P=1<<O;if(!(P&75913)){Q=H;R=N;S=M;break d}T=P|M;P=N+1|0;c[k>>2]=P;U=a[P>>0]|0;O=(U<<24>>24)+-32|0;if(O>>>0>=32){Q=U;R=P;S=T;break}else{H=U;M=T;N=P}}}else{Q=y;R=L;S=0}while(0);if(Q<<24>>24==42){y=R+1|0;I=(a[y>>0]|0)+-48|0;if(I>>>0<10?(a[R+2>>0]|0)==36:0){c[i+(I<<2)>>2]=10;V=1;W=R+3|0;X=c[g+((a[y>>0]|0)+-48<<3)>>2]|0}else{if(K|0){Y=-1;break}if(q){I=(c[f>>2]|0)+(4-1)&~(4-1);N=c[I>>2]|0;c[f>>2]=I+4;V=0;W=y;X=N}else{V=0;W=y;X=0}}c[k>>2]=W;y=(X|0)<0;Z=W;_=y?S|8192:S;$=V;aa=y?0-X|0:X}else{y=Jh(k)|0;if((y|0)<0){Y=-1;break}Z=c[k>>2]|0;_=S;$=K;aa=y}do if((a[Z>>0]|0)==46){if((a[Z+1>>0]|0)!=42){c[k>>2]=Z+1;y=Jh(k)|0;ba=c[k>>2]|0;ca=y;break}y=Z+2|0;N=(a[y>>0]|0)+-48|0;if(N>>>0<10?(a[Z+3>>0]|0)==36:0){c[i+(N<<2)>>2]=10;N=c[g+((a[y>>0]|0)+-48<<3)>>2]|0;I=Z+4|0;c[k>>2]=I;ba=I;ca=N;break}if($|0){Y=-1;break a}if(q){N=(c[f>>2]|0)+(4-1)&~(4-1);I=c[N>>2]|0;c[f>>2]=N+4;da=I}else da=0;c[k>>2]=y;ba=y;ca=da}else{ba=Z;ca=-1}while(0);y=ba;I=0;while(1){if(((a[y>>0]|0)+-65|0)>>>0>57){Y=-1;break a}ea=y+1|0;c[k>>2]=ea;fa=a[(a[y>>0]|0)+-65+(31800+(I*58|0))>>0]|0;ga=fa&255;if((ga+-1|0)>>>0<8){y=ea;I=ga}else break}if(!(fa<<24>>24)){Y=-1;break}N=(J|0)>-1;do if(fa<<24>>24==19)if(N){Y=-1;break a}else z=49;else{if(N){c[i+(J<<2)>>2]=ga;M=g+(J<<3)|0;H=c[M+4>>2]|0;O=m;c[O>>2]=c[M>>2];c[O+4>>2]=H;z=49;break}if(!q){Y=0;break a}Kh(m,ga,f)}while(0);if((z|0)==49?(z=0,!q):0){u=ea;e=x;v=0;w=$;continue}N=a[y>>0]|0;H=(I|0)!=0&(N&15|0)==3?N&-33:N;N=_&-65537;O=(_&8192|0)==0?_:N;e:do switch(H|0){case 110:{switch((I&255)<<24>>24){case 0:{c[c[m>>2]>>2]=x;u=ea;e=x;v=0;w=$;continue a;break}case 1:{c[c[m>>2]>>2]=x;u=ea;e=x;v=0;w=$;continue a;break}case 2:{M=c[m>>2]|0;c[M>>2]=x;c[M+4>>2]=((x|0)<0)<<31>>31;u=ea;e=x;v=0;w=$;continue a;break}case 3:{b[c[m>>2]>>1]=x;u=ea;e=x;v=0;w=$;continue a;break}case 4:{a[c[m>>2]>>0]=x;u=ea;e=x;v=0;w=$;continue a;break}case 6:{c[c[m>>2]>>2]=x;u=ea;e=x;v=0;w=$;continue a;break}case 7:{M=c[m>>2]|0;c[M>>2]=x;c[M+4>>2]=((x|0)<0)<<31>>31;u=ea;e=x;v=0;w=$;continue a;break}default:{u=ea;e=x;v=0;w=$;continue a}}break}case 112:{ha=O|8;ia=ca>>>0>8?ca:8;ja=120;z=61;break}case 88:case 120:{ha=O;ia=ca;ja=H;z=61;break}case 111:{M=m;P=c[M>>2]|0;T=c[M+4>>2]|0;M=Mh(P,T,r)|0;U=s-M|0;ka=P;la=T;ma=M;na=O;oa=(O&8|0)==0|(ca|0)>(U|0)?ca:U+1|0;pa=0;qa=32264;z=67;break}case 105:case 100:{U=m;M=c[U>>2]|0;T=c[U+4>>2]|0;if((T|0)<0){U=Ij(0,0,M|0,T|0)|0;P=D;ra=m;c[ra>>2]=U;c[ra+4>>2]=P;sa=U;ta=P;ua=1;va=32264;z=66;break e}else{sa=M;ta=T;ua=(O&2049|0)!=0&1;va=(O&2048|0)==0?((O&1|0)==0?32264:32266):32265;z=66;break e}break}case 117:{T=m;sa=c[T>>2]|0;ta=c[T+4>>2]|0;ua=0;va=32264;z=66;break}case 99:{a[t>>0]=c[m>>2];wa=t;xa=N;ya=1;za=0;Aa=32264;Ba=r;break}case 109:{Ca=Oh(c[(yh()|0)>>2]|0)|0;z=71;break}case 115:{T=c[m>>2]|0;Ca=T|0?T:32274;z=71;break}case 67:{c[o>>2]=c[m>>2];c[n>>2]=0;c[m>>2]=o;Da=o;Ea=-1;z=75;break}case 83:{T=c[m>>2]|0;if(!ca){Qh(d,32,aa,0,O);Fa=0;z=84}else{Da=T;Ea=ca;z=75}break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{u=ea;e=x;v=Sh(d,+h[m>>3],aa,ca,O,H)|0;w=$;continue a;break}default:{wa=u;xa=O;ya=ca;za=0;Aa=32264;Ba=r}}while(0);f:do if((z|0)==61){z=0;H=m;I=c[H>>2]|0;y=c[H+4>>2]|0;H=Lh(I,y,r,ja&32)|0;T=(ha&8|0)==0|(I|0)==0&(y|0)==0;ka=I;la=y;ma=H;na=ha;oa=ia;pa=T?0:2;qa=T?32264:32264+(ja>>4)|0;z=67}else if((z|0)==66){z=0;ka=sa;la=ta;ma=Nh(sa,ta,r)|0;na=O;oa=ca;pa=ua;qa=va;z=67}else if((z|0)==71){z=0;T=Ph(Ca,0,ca)|0;H=(T|0)==0;wa=Ca;xa=N;ya=H?ca:T-Ca|0;za=0;Aa=32264;Ba=H?Ca+ca|0:T}else if((z|0)==75){z=0;T=0;H=0;y=Da;while(1){I=c[y>>2]|0;if(!I){Ga=T;Ha=H;break}M=Rh(p,I)|0;if((M|0)<0|M>>>0>(Ea-T|0)>>>0){Ga=T;Ha=M;break}I=M+T|0;if(Ea>>>0>I>>>0){T=I;H=M;y=y+4|0}else{Ga=I;Ha=M;break}}if((Ha|0)<0){Y=-1;break a}Qh(d,32,aa,Ga,O);if(!Ga){Fa=0;z=84}else{y=0;H=Da;while(1){T=c[H>>2]|0;if(!T){Fa=Ga;z=84;break f}M=Rh(p,T)|0;y=M+y|0;if((y|0)>(Ga|0)){Fa=Ga;z=84;break f}Ih(d,p,M);if(y>>>0>=Ga>>>0){Fa=Ga;z=84;break}else H=H+4|0}}}while(0);if((z|0)==67){z=0;N=(ka|0)!=0|(la|0)!=0;H=(oa|0)!=0|N;y=((N^1)&1)+(s-ma)|0;wa=H?ma:r;xa=(oa|0)>-1?na&-65537:na;ya=H?((oa|0)>(y|0)?oa:y):oa;za=pa;Aa=qa;Ba=r}else if((z|0)==84){z=0;Qh(d,32,aa,Fa,O^8192);u=ea;e=x;v=(aa|0)>(Fa|0)?aa:Fa;w=$;continue}y=Ba-wa|0;H=(ya|0)<(y|0)?y:ya;N=H+za|0;M=(aa|0)<(N|0)?N:aa;Qh(d,32,M,N,xa);Ih(d,Aa,za);Qh(d,48,M,N,xa^65536);Qh(d,48,H,y,0);Ih(d,wa,y);Qh(d,32,M,N,xa^8192);u=ea;e=x;v=M;w=$}g:do if((z|0)==87)if(!d)if(!w)Y=0;else{$=1;while(1){v=c[i+($<<2)>>2]|0;if(!v){Ia=$;break}Kh(g+($<<3)|0,v,f);$=$+1|0;if(($|0)>=10){Y=1;break g}}while(1){if(c[i+(Ia<<2)>>2]|0){Y=-1;break g}Ia=Ia+1|0;if((Ia|0)>=10){Y=1;break}}}else Y=x;while(0);l=j;return Y|0}function Gh(a){a=a|0;return 0}function Hh(a){a=a|0;return}function Ih(a,b,d){a=a|0;b=b|0;d=d|0;if(!(c[a>>2]&32))ci(b,d,a)|0;return}function Jh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=c[b>>2]|0;e=(a[d>>0]|0)+-48|0;if(e>>>0<10){f=d;d=0;g=e;while(1){e=g+(d*10|0)|0;f=f+1|0;c[b>>2]=f;g=(a[f>>0]|0)+-48|0;if(g>>>0>=10){h=e;break}else d=e}}else h=0;return h|0}function Kh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,i=0,j=0.0;a:do if(b>>>0<=20)do switch(b|0){case 9:{e=(c[d>>2]|0)+(4-1)&~(4-1);f=c[e>>2]|0;c[d>>2]=e+4;c[a>>2]=f;break a;break}case 10:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;f=a;c[f>>2]=e;c[f+4>>2]=((e|0)<0)<<31>>31;break a;break}case 11:{e=(c[d>>2]|0)+(4-1)&~(4-1);f=c[e>>2]|0;c[d>>2]=e+4;e=a;c[e>>2]=f;c[e+4>>2]=0;break a;break}case 12:{e=(c[d>>2]|0)+(8-1)&~(8-1);f=e;g=c[f>>2]|0;i=c[f+4>>2]|0;c[d>>2]=e+8;e=a;c[e>>2]=g;c[e+4>>2]=i;break a;break}case 13:{i=(c[d>>2]|0)+(4-1)&~(4-1);e=c[i>>2]|0;c[d>>2]=i+4;i=(e&65535)<<16>>16;e=a;c[e>>2]=i;c[e+4>>2]=((i|0)<0)<<31>>31;break a;break}case 14:{i=(c[d>>2]|0)+(4-1)&~(4-1);e=c[i>>2]|0;c[d>>2]=i+4;i=a;c[i>>2]=e&65535;c[i+4>>2]=0;break a;break}case 15:{i=(c[d>>2]|0)+(4-1)&~(4-1);e=c[i>>2]|0;c[d>>2]=i+4;i=(e&255)<<24>>24;e=a;c[e>>2]=i;c[e+4>>2]=((i|0)<0)<<31>>31;break a;break}case 16:{i=(c[d>>2]|0)+(4-1)&~(4-1);e=c[i>>2]|0;c[d>>2]=i+4;i=a;c[i>>2]=e&255;c[i+4>>2]=0;break a;break}case 17:{i=(c[d>>2]|0)+(8-1)&~(8-1);j=+h[i>>3];c[d>>2]=i+8;h[a>>3]=j;break a;break}case 18:{i=(c[d>>2]|0)+(8-1)&~(8-1);j=+h[i>>3];c[d>>2]=i+8;h[a>>3]=j;break a;break}default:break a}while(0);while(0);return}function Lh(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,h=0;if((b|0)==0&(c|0)==0)g=e;else{h=b;b=c;c=e;while(1){e=c+-1|0;a[e>>0]=d[32316+(h&15)>>0]|0|f;h=Nj(h|0,b|0,4)|0;b=D;if((h|0)==0&(b|0)==0){g=e;break}else c=e}}return g|0}function Mh(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0;if((b|0)==0&(c|0)==0)e=d;else{f=b;b=c;c=d;while(1){d=c+-1|0;a[d>>0]=f&7|48;f=Nj(f|0,b|0,3)|0;b=D;if((f|0)==0&(b|0)==0){e=d;break}else c=d}}return e|0}function Nh(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;if(c>>>0>0|(c|0)==0&b>>>0>4294967295){e=b;f=c;c=d;while(1){g=Xj(e|0,f|0,10,0)|0;c=c+-1|0;a[c>>0]=g&255|48;g=e;e=Tj(e|0,f|0,10,0)|0;if(!(f>>>0>9|(f|0)==9&g>>>0>4294967295))break;else f=D}h=c;i=e}else{h=d;i=b}if(!i)j=h;else{b=h;h=i;while(1){i=b+-1|0;a[i>>0]=(h>>>0)%10|0|48;if(h>>>0<10){j=i;break}else{b=i;h=(h>>>0)/10|0}}}return j|0}function Oh(a){a=a|0;return Zh(a,c[(Yh()|0)+188>>2]|0)|0}function Ph(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;f=d&255;g=(e|0)!=0;a:do if(g&(b&3|0)!=0){h=d&255;i=e;j=b;while(1){if((a[j>>0]|0)==h<<24>>24){k=i;l=j;m=6;break a}n=j+1|0;o=i+-1|0;p=(o|0)!=0;if(p&(n&3|0)!=0){i=o;j=n}else{q=o;r=n;s=p;m=5;break}}}else{q=e;r=b;s=g;m=5}while(0);if((m|0)==5)if(s){k=q;l=r;m=6}else{t=0;u=r}b:do if((m|0)==6){r=d&255;if((a[l>>0]|0)==r<<24>>24){t=k;u=l}else{q=S(f,16843009)|0;c:do if(k>>>0>3){s=k;g=l;while(1){b=c[g>>2]^q;if((b&-2139062144^-2139062144)&b+-16843009|0)break;b=g+4|0;e=s+-4|0;if(e>>>0>3){s=e;g=b}else{v=e;w=b;m=11;break c}}x=s;y=g}else{v=k;w=l;m=11}while(0);if((m|0)==11)if(!v){t=0;u=w;break}else{x=v;y=w}while(1){if((a[y>>0]|0)==r<<24>>24){t=x;u=y;break b}q=y+1|0;x=x+-1|0;if(!x){t=0;u=q;break}else y=q}}}while(0);return (t|0?u:0)|0}function Qh(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=l;l=l+256|0;g=f;if((c|0)>(d|0)&(e&73728|0)==0){e=c-d|0;Jj(g|0,b|0,(e>>>0<256?e:256)|0)|0;if(e>>>0>255){b=c-d|0;d=e;do{Ih(a,g,256);d=d+-256|0}while(d>>>0>255);h=b&255}else h=e;Ih(a,g,h)}l=f;return}function Rh(a,b){a=a|0;b=b|0;var c=0;if(!a)c=0;else c=Wh(a,b,0)|0;return c|0}function Sh(b,e,f,g,h,i){b=b|0;e=+e;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0.0,E=0.0,F=0,G=0,H=0,I=0.0,J=0,K=0,L=0,M=0,N=0,O=0.0,P=0,Q=0,R=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0.0,fa=0.0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0;j=l;l=l+560|0;k=j+8|0;m=j;n=j+524|0;o=n;p=j+512|0;c[m>>2]=0;q=p+12|0;Th(e)|0;if((D|0)<0){r=1;s=32281;t=-e}else{r=(h&2049|0)!=0&1;s=(h&2048|0)==0?((h&1|0)==0?32282:32287):32284;t=e}Th(t)|0;u=D&2146435072;do if(u>>>0<2146435072|(u|0)==2146435072&0<0){e=+Uh(t,m)*2.0;v=e!=0.0;if(v)c[m>>2]=(c[m>>2]|0)+-1;w=i|32;if((w|0)==97){x=i&32;y=(x|0)==0?s:s+9|0;z=r|2;A=12-g|0;do if(!(g>>>0>11|(A|0)==0)){B=A;C=8.0;do{B=B+-1|0;C=C*16.0}while((B|0)!=0);if((a[y>>0]|0)==45){E=-(C+(-e-C));break}else{E=e+C-C;break}}else E=e;while(0);A=c[m>>2]|0;B=(A|0)<0?0-A|0:A;F=Nh(B,((B|0)<0)<<31>>31,q)|0;if((F|0)==(q|0)){B=p+11|0;a[B>>0]=48;G=B}else G=F;a[G+-1>>0]=(A>>31&2)+43;A=G+-2|0;a[A>>0]=i+15;F=(g|0)<1;B=(h&8|0)==0;H=n;I=E;while(1){J=~~I;K=H+1|0;a[H>>0]=d[32316+J>>0]|x;I=(I-+(J|0))*16.0;if((K-o|0)==1?!(B&(F&I==0.0)):0){a[K>>0]=46;L=H+2|0}else L=K;if(!(I!=0.0))break;else H=L}H=L-o|0;F=q-A|0;B=(g|0)!=0&(H+-2|0)<(g|0)?g+2|0:H;x=F+z+B|0;Qh(b,32,f,x,h);Ih(b,y,z);Qh(b,48,f,x,h^65536);Ih(b,n,H);Qh(b,48,B-H|0,0,0);Ih(b,A,F);Qh(b,32,f,x,h^8192);M=x;break}x=(g|0)<0?6:g;if(v){F=(c[m>>2]|0)+-28|0;c[m>>2]=F;N=F;O=e*268435456.0}else{N=c[m>>2]|0;O=e}F=(N|0)<0?k:k+288|0;I=O;H=F;do{B=~~I>>>0;c[H>>2]=B;H=H+4|0;I=(I-+(B>>>0))*1.0e9}while(I!=0.0);if((N|0)>0){v=N;A=F;z=H;while(1){y=(v|0)<29?v:29;B=z+-4|0;if(B>>>0>=A>>>0){K=0;J=B;do{B=Mj(c[J>>2]|0,0,y|0)|0;P=Kj(B|0,D|0,K|0,0)|0;B=D;Q=Xj(P|0,B|0,1e9,0)|0;c[J>>2]=Q;K=Tj(P|0,B|0,1e9,0)|0;J=J+-4|0}while(J>>>0>=A>>>0);if(K){J=A+-4|0;c[J>>2]=K;R=J}else R=A}else R=A;J=z;while(1){if(J>>>0<=R>>>0)break;B=J+-4|0;if(!(c[B>>2]|0))J=B;else break}K=(c[m>>2]|0)-y|0;c[m>>2]=K;if((K|0)>0){v=K;A=R;z=J}else{T=K;U=R;V=J;break}}}else{T=N;U=F;V=H}if((T|0)<0){z=((x+25|0)/9|0)+1|0;A=(w|0)==102;v=T;K=U;B=V;while(1){P=0-v|0;Q=(P|0)<9?P:9;if(K>>>0<B>>>0){P=(1<<Q)+-1|0;W=1e9>>>Q;X=0;Y=K;do{Z=c[Y>>2]|0;c[Y>>2]=(Z>>>Q)+X;X=S(Z&P,W)|0;Y=Y+4|0}while(Y>>>0<B>>>0);Y=(c[K>>2]|0)==0?K+4|0:K;if(!X){_=Y;$=B}else{c[B>>2]=X;_=Y;$=B+4|0}}else{_=(c[K>>2]|0)==0?K+4|0:K;$=B}Y=A?F:_;W=($-Y>>2|0)>(z|0)?Y+(z<<2)|0:$;v=(c[m>>2]|0)+Q|0;c[m>>2]=v;if((v|0)>=0){aa=_;ba=W;break}else{K=_;B=W}}}else{aa=U;ba=V}B=F;if(aa>>>0<ba>>>0){K=(B-aa>>2)*9|0;v=c[aa>>2]|0;if(v>>>0<10)ca=K;else{z=K;K=10;while(1){K=K*10|0;A=z+1|0;if(v>>>0<K>>>0){ca=A;break}else z=A}}}else ca=0;z=(w|0)==103;K=(x|0)!=0;v=x-((w|0)!=102?ca:0)+((K&z)<<31>>31)|0;if((v|0)<(((ba-B>>2)*9|0)+-9|0)){A=v+9216|0;v=F+4+(((A|0)/9|0)+-1024<<2)|0;H=((A|0)%9|0)+1|0;if((H|0)<9){A=10;W=H;while(1){H=A*10|0;W=W+1|0;if((W|0)==9){da=H;break}else A=H}}else da=10;A=c[v>>2]|0;W=(A>>>0)%(da>>>0)|0;w=(v+4|0)==(ba|0);if(!(w&(W|0)==0)){C=(((A>>>0)/(da>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;H=(da|0)/2|0;I=W>>>0<H>>>0?.5:w&(W|0)==(H|0)?1.0:1.5;if(!r){ea=C;fa=I}else{H=(a[s>>0]|0)==45;ea=H?-C:C;fa=H?-I:I}H=A-W|0;c[v>>2]=H;if(ea+fa!=ea){W=H+da|0;c[v>>2]=W;if(W>>>0>999999999){W=aa;H=v;while(1){A=H+-4|0;c[H>>2]=0;if(A>>>0<W>>>0){w=W+-4|0;c[w>>2]=0;ga=w}else ga=W;w=(c[A>>2]|0)+1|0;c[A>>2]=w;if(w>>>0>999999999){W=ga;H=A}else{ha=ga;ia=A;break}}}else{ha=aa;ia=v}H=(B-ha>>2)*9|0;W=c[ha>>2]|0;if(W>>>0<10){ja=ha;ka=ia;la=H}else{A=H;H=10;while(1){H=H*10|0;w=A+1|0;if(W>>>0<H>>>0){ja=ha;ka=ia;la=w;break}else A=w}}}else{ja=aa;ka=v;la=ca}}else{ja=aa;ka=v;la=ca}A=ka+4|0;ma=ja;na=la;oa=ba>>>0>A>>>0?A:ba}else{ma=aa;na=ca;oa=ba}A=oa;while(1){if(A>>>0<=ma>>>0){pa=0;break}H=A+-4|0;if(!(c[H>>2]|0))A=H;else{pa=1;break}}v=0-na|0;do if(z){H=((K^1)&1)+x|0;if((H|0)>(na|0)&(na|0)>-5){qa=H+-1-na|0;ra=i+-1|0}else{qa=H+-1|0;ra=i+-2|0}H=h&8;if(!H){if(pa?(W=c[A+-4>>2]|0,(W|0)!=0):0)if(!((W>>>0)%10|0)){w=10;Y=0;while(1){w=w*10|0;P=Y+1|0;if((W>>>0)%(w>>>0)|0|0){sa=P;break}else Y=P}}else sa=0;else sa=9;Y=((A-B>>2)*9|0)+-9|0;if((ra|32|0)==102){w=Y-sa|0;W=(w|0)>0?w:0;ta=0;ua=(qa|0)<(W|0)?qa:W;va=ra;break}else{W=Y+na-sa|0;Y=(W|0)>0?W:0;ta=0;ua=(qa|0)<(Y|0)?qa:Y;va=ra;break}}else{ta=H;ua=qa;va=ra}}else{ta=h&8;ua=x;va=i}while(0);x=ua|ta;B=(x|0)!=0&1;K=(va|32|0)==102;if(K){wa=0;xa=(na|0)>0?na:0}else{z=(na|0)<0?v:na;Y=Nh(z,((z|0)<0)<<31>>31,q)|0;z=q;if((z-Y|0)<2){W=Y;while(1){w=W+-1|0;a[w>>0]=48;if((z-w|0)<2)W=w;else{ya=w;break}}}else ya=Y;a[ya+-1>>0]=(na>>31&2)+43;W=ya+-2|0;a[W>>0]=va;wa=W;xa=z-W|0}W=r+1+ua+B+xa|0;Qh(b,32,f,W,h);Ih(b,s,r);Qh(b,48,f,W,h^65536);if(K){v=ma>>>0>F>>>0?F:ma;w=n+9|0;Q=w;X=n+8|0;P=v;do{J=Nh(c[P>>2]|0,0,w)|0;if((P|0)==(v|0))if((J|0)==(w|0)){a[X>>0]=48;za=X}else za=J;else if(J>>>0>n>>>0){Jj(n|0,48,J-o|0)|0;y=J;while(1){Z=y+-1|0;if(Z>>>0>n>>>0)y=Z;else{za=Z;break}}}else za=J;Ih(b,za,Q-za|0);P=P+4|0}while(P>>>0<=F>>>0);if(x|0)Ih(b,32332,1);if(P>>>0<A>>>0&(ua|0)>0){F=P;Q=ua;while(1){X=Nh(c[F>>2]|0,0,w)|0;if(X>>>0>n>>>0){Jj(n|0,48,X-o|0)|0;v=X;while(1){K=v+-1|0;if(K>>>0>n>>>0)v=K;else{Aa=K;break}}}else Aa=X;Ih(b,Aa,(Q|0)<9?Q:9);F=F+4|0;v=Q+-9|0;if(!(F>>>0<A>>>0&(Q|0)>9)){Ba=v;break}else Q=v}}else Ba=ua;Qh(b,48,Ba+9|0,9,0)}else{Q=pa?A:ma+4|0;if((ua|0)>-1){F=n+9|0;w=(ta|0)==0;P=F;x=0-o|0;v=n+8|0;J=ma;K=ua;while(1){B=Nh(c[J>>2]|0,0,F)|0;if((B|0)==(F|0)){a[v>>0]=48;Ca=v}else Ca=B;do if((J|0)==(ma|0)){B=Ca+1|0;Ih(b,Ca,1);if(w&(K|0)<1){Da=B;break}Ih(b,32332,1);Da=B}else{if(Ca>>>0<=n>>>0){Da=Ca;break}Jj(n|0,48,Ca+x|0)|0;B=Ca;while(1){z=B+-1|0;if(z>>>0>n>>>0)B=z;else{Da=z;break}}}while(0);X=P-Da|0;Ih(b,Da,(K|0)>(X|0)?X:K);B=K-X|0;J=J+4|0;if(!(J>>>0<Q>>>0&(B|0)>-1)){Ea=B;break}else K=B}}else Ea=ua;Qh(b,48,Ea+18|0,18,0);Ih(b,wa,q-wa|0)}Qh(b,32,f,W,h^8192);M=W}else{K=(i&32|0)!=0;Q=r+3|0;Qh(b,32,f,Q,h&-65537);Ih(b,s,r);Ih(b,t!=t|0.0!=0.0?(K?32308:32312):K?32300:32304,3);Qh(b,32,f,Q,h^8192);M=Q}while(0);l=j;return ((M|0)<(f|0)?f:M)|0}function Th(a){a=+a;var b=0;h[j>>3]=a;b=c[j>>2]|0;D=c[j+4>>2]|0;return b|0}function Uh(a,b){a=+a;b=b|0;return +(+Vh(a,b))}function Vh(a,b){a=+a;b=b|0;var d=0,e=0,f=0,g=0.0,i=0,k=0.0,l=0.0;h[j>>3]=a;d=c[j>>2]|0;e=c[j+4>>2]|0;f=Nj(d|0,e|0,52)|0;switch(f&2047){case 0:{if(a!=0.0){g=+Vh(a*18446744073709551616.0,b);i=(c[b>>2]|0)+-64|0;k=g}else{i=0;k=a}c[b>>2]=i;l=k;break}case 2047:{l=a;break}default:{c[b>>2]=(f&2047)+-1022;c[j>>2]=d;c[j+4>>2]=e&-2146435073|1071644672;l=+h[j>>3]}}return +l}function Wh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if(b){if(d>>>0<128){a[b>>0]=d;f=1;break}if(!(mb(c,c[(Xh()|0)+188>>2]>>2)|0))if((d&-128|0)==57216){a[b>>0]=d;f=1;break}else{c[(yh()|0)>>2]=84;f=-1;break}if(d>>>0<2048){a[b>>0]=d>>>6|192;a[b+1>>0]=d&63|128;f=2;break}if(d>>>0<55296|(d&-8192|0)==57344){a[b>>0]=d>>>12|224;a[b+1>>0]=d>>>6&63|128;a[b+2>>0]=d&63|128;f=3;break}if((d+-65536|0)>>>0<1048576){a[b>>0]=d>>>18|240;a[b+1>>0]=d>>>12&63|128;a[b+2>>0]=d>>>6&63|128;a[b+3>>0]=d&63|128;f=4;break}else{c[(yh()|0)>>2]=84;f=-1;break}}else f=1;while(0);return f|0}function Xh(){return Ra()|0}function Yh(){return Ra()|0}function Zh(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=0;while(1){if((d[32334+f>>0]|0)==(b|0)){g=2;break}h=f+1|0;if((h|0)==87){i=87;j=32422;g=5;break}else f=h}if((g|0)==2)if(!f)k=32422;else{i=f;j=32422;g=5}if((g|0)==5)while(1){g=0;f=j;do{b=f;f=f+1|0}while((a[b>>0]|0)!=0);i=i+-1|0;if(!i){k=f;break}else{j=f;g=5}}return _h(k,mb(c,e+20>>2)|0)|0}function _h(a,b){a=a|0;b=b|0;return $h(a,b)|0}function $h(a,b){a=a|0;b=b|0;var d=0;if(!b)d=0;else d=ai(c[b>>2]|0,c[b+4>>2]|0,a)|0;return (d|0?d:a)|0}function ai(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=(c[b>>2]|0)+1794895138|0;g=bi(c[b+8>>2]|0,f)|0;h=bi(c[b+12>>2]|0,f)|0;i=bi(c[b+16>>2]|0,f)|0;a:do if((g>>>0<d>>>2>>>0?(j=d-(g<<2)|0,h>>>0<j>>>0&i>>>0<j>>>0):0)?((i|h)&3|0)==0:0){j=h>>>2;k=i>>>2;l=0;m=g;while(1){n=m>>>1;o=l+n|0;p=o<<1;q=p+j|0;r=bi(c[b+(q<<2)>>2]|0,f)|0;s=bi(c[b+(q+1<<2)>>2]|0,f)|0;if(!(s>>>0<d>>>0&r>>>0<(d-s|0)>>>0)){t=0;break a}if(a[b+(s+r)>>0]|0){t=0;break a}r=Ch(e,b+s|0)|0;if(!r)break;s=(r|0)<0;if((m|0)==1){t=0;break a}else{l=s?l:o;m=s?n:m-n|0}}m=p+k|0;l=bi(c[b+(m<<2)>>2]|0,f)|0;j=bi(c[b+(m+1<<2)>>2]|0,f)|0;if(j>>>0<d>>>0&l>>>0<(d-j|0)>>>0)t=(a[b+(j+l)>>0]|0)==0?b+j|0:0;else t=0}else t=0;while(0);return t|0}function bi(a,b){a=a|0;b=b|0;var c=0;c=Yj(a|0)|0;return ((b|0)==0?a:c)|0}function ci(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=e+16|0;g=c[f>>2]|0;if(!g)if(!(di(e)|0)){h=c[f>>2]|0;i=5}else j=0;else{h=g;i=5}a:do if((i|0)==5){g=e+20|0;f=c[g>>2]|0;k=f;if((h-f|0)>>>0<d>>>0){j=wb[c[e+36>>2]&7](e,b,d)|0;break}b:do if((a[e+75>>0]|0)>-1){f=d;while(1){if(!f){l=k;m=0;n=d;o=b;break b}p=f+-1|0;if((a[b+p>>0]|0)==10)break;else f=p}p=wb[c[e+36>>2]&7](e,b,f)|0;if(p>>>0<f>>>0){j=p;break a}l=c[g>>2]|0;m=f;n=d-f|0;o=b+f|0}else{l=k;m=0;n=d;o=b}while(0);Qj(l|0,o|0,n|0)|0;c[g>>2]=(c[g>>2]|0)+n;j=m+n|0}while(0);return j|0}function di(b){b=b|0;var d=0,e=0,f=0;d=b+74|0;e=a[d>>0]|0;a[d>>0]=e+255|e;e=c[b>>2]|0;if(!(e&8)){c[b+8>>2]=0;c[b+4>>2]=0;d=c[b+44>>2]|0;c[b+28>>2]=d;c[b+20>>2]=d;c[b+16>>2]=d+(c[b+48>>2]|0);f=0}else{c[b>>2]=e|32;f=-1}return f|0}function ei(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=a+20|0;f=c[e>>2]|0;g=(c[a+16>>2]|0)-f|0;a=g>>>0>d>>>0?d:g;Qj(f|0,b|0,a|0)|0;c[e>>2]=(c[e>>2]|0)+a;return d|0}function fi(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;f=l;l=l+208|0;g=f+8|0;h=f;i=S(d,b)|0;b=h;c[b>>2]=1;c[b+4>>2]=0;a:do if(i|0){b=0-d|0;c[g+4>>2]=d;c[g>>2]=d;j=d;k=d;m=2;while(1){n=j+d+k|0;c[g+(m<<2)>>2]=n;if(n>>>0<i>>>0){o=k;k=n;m=m+1|0;j=o}else break}j=a+i+b|0;if(j>>>0>a>>>0){m=j;k=1;o=a;n=1;while(1){do if((k&3|0)!=3){p=n+-1|0;if((c[g+(p<<2)>>2]|0)>>>0<(m-o|0)>>>0)gi(o,d,e,n,g);else ii(o,d,e,h,n,0,g);if((n|0)==1){ji(h,1);q=0;break}else{ji(h,p);q=1;break}}else{gi(o,d,e,n,g);hi(h,2);q=n+2|0}while(0);p=c[h>>2]|1;c[h>>2]=p;r=o+d|0;if(r>>>0<j>>>0){k=p;o=r;n=q}else{s=p;t=r;u=q;break}}}else{s=1;t=a;u=1}ii(t,d,e,h,u,0,g);n=h+4|0;o=s;k=t;j=u;while(1){if((j|0)==1&(o|0)==1){if(!(c[n>>2]|0))break a}else if((j|0)>=2){ji(h,2);m=j+-2|0;c[h>>2]=c[h>>2]^7;hi(h,1);ii(k+(0-(c[g+(m<<2)>>2]|0))+b|0,d,e,h,j+-1|0,1,g);ji(h,1);r=c[h>>2]|1;c[h>>2]=r;p=k+b|0;ii(p,d,e,h,m,1,g);o=r;k=p;j=m;continue}m=ki(h)|0;hi(h,m);o=c[h>>2]|0;k=k+b|0;j=m+j|0}}while(0);l=f;return}function gi(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;g=l;l=l+240|0;h=g;c[h>>2]=a;a:do if((e|0)>1){i=0-b|0;j=a;k=a;m=1;n=e;while(1){o=k+i|0;p=n+-2|0;q=o+(0-(c[f+(p<<2)>>2]|0))|0;if((Gb[d&31](j,q)|0)>-1?(Gb[d&31](j,o)|0)>-1:0){r=m;break a}s=m+1|0;t=h+(m<<2)|0;if((Gb[d&31](q,o)|0)>-1){c[t>>2]=q;u=q;v=n+-1|0}else{c[t>>2]=o;u=o;v=p}if((v|0)<=1){r=s;break a}j=c[h>>2]|0;k=u;m=s;n=v}}else r=1;while(0);mi(b,h,r);l=g;return}function hi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=a+4|0;if(b>>>0>31){e=c[d>>2]|0;c[a>>2]=e;c[d>>2]=0;f=e;g=0;h=b+-32|0}else{f=c[a>>2]|0;g=c[d>>2]|0;h=b}c[a>>2]=g<<32-h|f>>>h;c[d>>2]=g>>>h;return}function ii(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;i=l;l=l+240|0;j=i+232|0;k=i;m=c[e>>2]|0;c[j>>2]=m;n=c[e+4>>2]|0;e=j+4|0;c[e>>2]=n;c[k>>2]=a;a:do if((m|0)!=1|(n|0)!=0?(o=0-b|0,p=a+(0-(c[h+(f<<2)>>2]|0))|0,(Gb[d&31](p,a)|0)>=1):0){q=p;p=a;r=1;s=f;t=(g|0)==0;while(1){if(t&(s|0)>1){u=p+o|0;v=c[h+(s+-2<<2)>>2]|0;if((Gb[d&31](u,q)|0)>-1){w=p;x=r;y=s;z=10;break a}if((Gb[d&31](u+(0-v)|0,q)|0)>-1){w=p;x=r;y=s;z=10;break a}}v=r+1|0;c[k+(r<<2)>>2]=q;u=ki(j)|0;hi(j,u);A=u+s|0;if(!((c[j>>2]|0)!=1|(c[e>>2]|0)!=0)){w=q;x=v;y=A;z=10;break a}u=q+(0-(c[h+(A<<2)>>2]|0))|0;if((Gb[d&31](u,c[k>>2]|0)|0)<1){B=q;C=v;D=A;E=0;z=9;break}else{F=q;q=u;r=v;s=A;t=1;p=F}}}else{B=a;C=1;D=f;E=g;z=9}while(0);if((z|0)==9?(E|0)==0:0){w=B;x=C;y=D;z=10}if((z|0)==10){mi(b,k,x);gi(w,b,d,y,h)}l=i;return}function ji(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=a+4|0;if(b>>>0>31){e=c[a>>2]|0;c[d>>2]=e;c[a>>2]=0;f=e;g=0;h=b+-32|0}else{f=c[d>>2]|0;g=c[a>>2]|0;h=b}c[d>>2]=g>>>(32-h|0)|f<<h;c[a>>2]=g<<h;return}function ki(a){a=a|0;var b=0,d=0;b=li((c[a>>2]|0)+-1|0)|0;if(!b){d=li(c[a+4>>2]|0)|0;return ((d|0)==0?0:d+32|0)|0}else return b|0;return 0}function li(a){a=a|0;var b=0,c=0,d=0;if(a)if(!(a&1)){b=0;c=a;while(1){a=b+1|0;c=c>>>1;if(c&1|0){d=a;break}else b=a}}else d=0;else d=32;return d|0}function mi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0;e=l;l=l+256|0;f=e;a:do if((d|0)>=2?(g=b+(d<<2)|0,c[g>>2]=f,a|0):0){h=f;i=a;while(1){j=i>>>0<256?i:256;Qj(h|0,c[b>>2]|0,j|0)|0;k=0;do{m=b+(k<<2)|0;k=k+1|0;Qj(c[m>>2]|0,c[b+(k<<2)>>2]|0,j|0)|0;c[m>>2]=(c[m>>2]|0)+j}while((k|0)!=(d|0));k=i-j|0;if(!k)break a;h=c[g>>2]|0;i=k}}while(0);l=e;return}function ni(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=b;a:do if(!(d&3)){e=b;f=4}else{g=d;h=b;while(1){if(!(a[h>>0]|0)){i=g;break a}j=h+1|0;g=j;if(!(g&3)){e=j;f=4;break}else h=j}}while(0);if((f|0)==4){f=e;while(1){k=c[f>>2]|0;if(!((k&-2139062144^-2139062144)&k+-16843009))f=f+4|0;else break}if(!((k&255)<<24>>24))l=f;else{k=f;while(1){f=k+1|0;if(!(a[f>>0]|0)){l=f;break}else k=f}}i=l}return i-d|0}function oi(a,b){a=a|0;b=b|0;var c=0;c=ni(a)|0;return ((pi(a,1,c,b)|0)!=(c|0))<<31>>31|0}function pi(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=S(d,b)|0;g=(b|0)==0?0:d;if((mb(c,e+76>>2)|0)>-1){d=(Gh(e)|0)==0;h=ci(a,f,e)|0;if(d)i=h;else{Hh(e);i=h}}else i=ci(a,f,e)|0;if((i|0)==(f|0))j=g;else j=(i>>>0)/(b>>>0)|0;return j|0}function qi(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0;f=l;l=l+16|0;g=f;h=e&255;a[g>>0]=h;i=b+16|0;j=c[i>>2]|0;if(!j)if(!(di(b)|0)){k=c[i>>2]|0;m=4}else n=-1;else{k=j;m=4}do if((m|0)==4){j=b+20|0;i=c[j>>2]|0;if(i>>>0<k>>>0?(o=e&255,(o|0)!=(a[b+75>>0]|0)):0){c[j>>2]=i+1;a[i>>0]=h;n=o;break}if((wb[c[b+36>>2]&7](b,g,1)|0)==1)n=d[g>>0]|0;else n=-1}while(0);l=f;return n|0}function ri(a,b){a=a|0;b=b|0;var d=0,e=0;d=l;l=l+16|0;e=d;c[e>>2]=b;b=Eh(c[5311]|0,a,e)|0;l=d;return b|0}function si(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=c[5311]|0;if((mb(c,d+76>>2)|0)>-1)e=Gh(d)|0;else e=0;do if((oi(b,d)|0)<0)f=1;else{if((a[d+75>>0]|0)!=10?(g=d+20|0,h=c[g>>2]|0,h>>>0<(c[d+16>>2]|0)>>>0):0){c[g>>2]=h+1;a[h>>0]=10;f=0;break}f=(qi(d,10)|0)<0}while(0);if(e|0)Hh(d);return f<<31>>31|0}function ti(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=c[f>>2]|0;h=c[f+4>>2]|0;f=Kj(g|0,h|0,b|0,d|0)|0;d=a;c[d>>2]=f;c[d+4>>2]=D;nb(c,e>>2,0)|0;D=h;return g|0}function ui(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=c[f>>2]|0;h=c[f+4>>2]|0;f=a;c[f>>2]=g&b;c[f+4>>2]=h&d;nb(c,e>>2,0)|0;D=h;return g|0}function vi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=c[f>>2]|0;h=c[f+4>>2]|0;f=a;c[f>>2]=g|b;c[f+4>>2]=h|d;nb(c,e>>2,0)|0;D=h;return g|0}function wi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=c[f>>2]|0;h=c[f+4>>2]|0;f=Ij(g|0,h|0,b|0,d|0)|0;d=a;c[d>>2]=f;c[d+4>>2]=D;nb(c,e>>2,0)|0;D=h;return g|0}function xi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=c[f>>2]|0;h=c[f+4>>2]|0;f=a;c[f>>2]=g^b;c[f+4>>2]=h^d;nb(c,e>>2,0)|0;D=h;return g|0}function yi(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if(!b)va(34541,34348,260,34546);if(qa()|0){_i(b);return}cj(35904)|0;if(!(a[39068]&1))a[39068]=1;d=mb(c,8983)|0;e=mb(c,8984)|0;f=(e+1|0)%128|0;if((f|0)==(d|0)){g=d;while(1){$i(35904)|0;Ba(35932,g|0,t)|0;cj(35904)|0;h=mb(c,8983)|0;i=mb(c,8984)|0;j=(i+1|0)%128|0;if((j|0)==(h|0))g=h;else{k=h;l=i;m=j;break}}}else{k=d;l=e;m=f}c[35940+(l<<2)>>2]=b;if((k|0)==(l|0))Ha(0);nb(c,8984,m)|0;$i(35904)|0;return}function zi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=Kj(c[f>>2]|0,c[f+4>>2]|0,b|0,d|0)|0;d=D;b=a;c[b>>2]=g;c[b+4>>2]=d;nb(c,e>>2,0)|0;D=d;return g|0}function Ai(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=c[f>>2]&b;b=c[f+4>>2]&d;d=a;c[d>>2]=g;c[d+4>>2]=b;nb(c,e>>2,0)|0;D=b;return g|0}function Bi(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=36460+((a>>>3&255)<<2)|0;do do h=mb(c,g>>2)|0;while((h|0)!=(pb(c,g>>2,h,1)|0));while((h|0)!=0);h=a;i=c[h>>2]|0;j=c[h+4>>2]|0;if(!((i|0)==(b|0)&(j|0)==(d|0))){k=nb(c,g>>2,0)|0;D=j;return i|0}d=a;c[d>>2]=e;c[d+4>>2]=f;k=nb(c,g>>2,0)|0;D=j;return i|0}function Ci(a,b){a=a|0;b=b|0;var d=0;do d=mb(c,a>>2)|0;while((d|0)!=(pb(c,a>>2,d,b)|0));return d|0}function Di(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=c[f>>2]|0;h=c[f+4>>2]|0;f=a;c[f>>2]=b;c[f+4>>2]=d;nb(c,e>>2,0)|0;D=h;return g|0}function Ei(a){a=a|0;var b=0;b=mb(c,a>>2)|0;return +(c[j>>2]=b,+g[j>>2])}function Fi(a){a=a|0;var b=0,d=0,e=0.0;b=36460+((a>>>3&255)<<2)|0;do do d=mb(c,b>>2)|0;while((d|0)!=(pb(c,b>>2,d,1)|0));while((d|0)!=0);e=+h[a>>3];nb(c,b>>2,0)|0;return +e}function Gi(a){a=a|0;var b=0,d=0,e=0;b=36460+((a>>>3&255)<<2)|0;do do d=mb(c,b>>2)|0;while((d|0)!=(pb(c,b>>2,d,1)|0));while((d|0)!=0);d=a;a=c[d>>2]|0;e=c[d+4>>2]|0;nb(c,b>>2,0)|0;D=e;return a|0}function Hi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=c[f>>2]|b;b=c[f+4>>2]|d;d=a;c[d>>2]=g;c[d+4>>2]=b;nb(c,e>>2,0)|0;D=b;return g|0}function Ii(a,b){a=a|0;b=+b;return +(+((nb(c,a>>2,(g[j>>2]=b,c[j>>2]|0))|0)>>>0))}function Ji(a,b){a=a|0;b=+b;var d=0,e=0;d=36460+((a>>>3&255)<<2)|0;do do e=mb(c,d>>2)|0;while((e|0)!=(pb(c,d>>2,e,1)|0));while((e|0)!=0);h[a>>3]=b;nb(c,d>>2,0)|0;return +b}function Ki(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;c[f>>2]=b;c[f+4>>2]=d;nb(c,e>>2,0)|0;D=d;return b|0}function Li(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=Ij(c[f>>2]|0,c[f+4>>2]|0,b|0,d|0)|0;d=D;b=a;c[b>>2]=g;c[b+4>>2]=d;nb(c,e>>2,0)|0;D=d;return g|0}function Mi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=36460+((a>>>3&255)<<2)|0;do do f=mb(c,e>>2)|0;while((f|0)!=(pb(c,e>>2,f,1)|0));while((f|0)!=0);f=a;g=c[f>>2]^b;b=c[f+4>>2]^d;d=a;c[d>>2]=g;c[d+4>>2]=b;nb(c,e>>2,0)|0;D=b;return g|0}function Ni(){var a=0,b=0;if(!(qa()|0))va(34226,34348,424,34437);a=(qa()|0)==0;if(a|(c[8975]|0)!=0)return;c[8975]=1;cj(35904)|0;a=mb(c,8983)|0;b=(a|0)==(mb(c,8984)|0);$i(35904)|0;if(!b){b=a;do{_i(c[35940+(b<<2)>>2]|0);cj(35904)|0;b=(b+1|0)%128|0;nb(c,8983,b)|0;a=(b|0)==(mb(c,8984)|0);$i(35904)|0}while(!a)}Ia(35932,2147483647)|0;c[8975]=0;return}function Oi(a){a=a|0;yi(a);Zi(a,t)|0;return}function Pi(a){a=a|0;var b=0,d=0,e=0,f=0;b=l;l=l+96|0;d=b;e=d;f=e+96|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(f|0));c[d>>2]=a;a=d+80|0;c[a>>2]=0;yi(d);Zi(d,t)|0;l=b;return c[a>>2]|0}function Qi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=l;l=l+96|0;e=d;f=e;g=f+96|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));c[e>>2]=a;c[e+16>>2]=b;b=e+80|0;c[b>>2]=0;yi(e);Zi(e,t)|0;l=d;return c[b>>2]|0}function Ri(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=l;l=l+96|0;f=e;g=f;h=g+96|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));c[f>>2]=a;c[f+16>>2]=b;c[f+24>>2]=d;d=f+80|0;c[d>>2]=0;yi(f);Zi(f,t)|0;l=e;return c[d>>2]|0}function Si(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=l;l=l+96|0;g=f;h=g;i=h+96|0;do{c[h>>2]=0;h=h+4|0}while((h|0)<(i|0));c[g>>2]=a;c[g+16>>2]=b;c[g+24>>2]=d;c[g+32>>2]=e;e=g+80|0;c[e>>2]=0;yi(g);Zi(g,t)|0;l=f;return c[e>>2]|0}function Ti(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;g=l;l=l+96|0;h=g;i=h;j=i+96|0;do{c[i>>2]=0;i=i+4|0}while((i|0)<(j|0));c[h>>2]=a;c[h+16>>2]=b;c[h+24>>2]=d;c[h+32>>2]=e;c[h+40>>2]=f;f=h+80|0;c[f>>2]=0;yi(h);Zi(h,t)|0;l=g;return c[f>>2]|0}function Ui(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;h=l;l=l+96|0;i=h;j=i;k=j+96|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(k|0));c[i>>2]=a;c[i+16>>2]=b;c[i+24>>2]=d;c[i+32>>2]=e;c[i+40>>2]=f;c[i+48>>2]=g;g=i+80|0;c[g>>2]=0;yi(i);Zi(i,t)|0;l=h;return c[g>>2]|0}function Vi(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,m=0;i=l;l=l+96|0;j=i;k=j;m=k+96|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(m|0));c[j>>2]=a;c[j+16>>2]=b;c[j+24>>2]=d;c[j+32>>2]=e;c[j+40>>2]=f;c[j+48>>2]=g;c[j+56>>2]=h;h=j+80|0;c[h>>2]=0;yi(j);Zi(j,t)|0;l=i;return c[h>>2]|0}function Wi(a,b,d,e,f,g,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,m=0,n=0;j=l;l=l+96|0;k=j;m=k;n=m+96|0;do{c[m>>2]=0;m=m+4|0}while((m|0)<(n|0));c[k>>2]=a;c[k+16>>2]=b;c[k+24>>2]=d;c[k+32>>2]=e;c[k+40>>2]=f;c[k+48>>2]=g;c[k+56>>2]=h;c[k+64>>2]=i;i=k+80|0;c[i>>2]=0;yi(k);Zi(k,t)|0;l=j;return c[i>>2]|0}function Xi(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0;f=l;l=l+240|0;g=f+96|0;h=f+112|0;i=f;c[g>>2]=e;j=Dh(h,128,d,g)|0;k=j+1|0;if((j|0)>127){j=Bj(k)|0;c[g>>2]=e;Dh(j,k,d,g)|0;m=j}else m=h;j=i;g=j+96|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(g|0));c[i>>2]=a;c[i+16>>2]=b;c[i+24>>2]=m;b=i+80|0;c[b>>2]=0;yi(i);Zi(i,t)|0;if((m|0)==(h|0)){n=c[b>>2]|0;l=f;return n|0}Cj(m);n=c[b>>2]|0;l=f;return n|0}function Yi(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,i=0;a=Ra()|0;if(!(c[a+60>>2]|0))return;b=a+116|0;a=0;do{d=0;e=0;while(1){f=(c[b>>2]|0)+(d<<2)|0;g=c[f>>2]|0;if((g|0)!=0?(h=35388+(d<<2)|0,(mb(c,h>>2)|0)!=0):0){c[f>>2]=0;zb[(mb(c,h>>2)|0)&31](g);i=1}else i=e;d=d+1|0;if((d|0)==128)break;else e=i}a=a+1|0}while((a|0)<4&(i|0)!=0);return}function Zi(a,b){a=a|0;b=+b;var d=0,e=0,f=0,g=0,h=0.0,i=0.0,j=0;d=a+8|0;a=mb(c,d>>2)|0;if(a|0){e=a;f=(e|0)==0;g=f?-8:0;return g|0}h=+Za();i=h+b;Hj(5);if(h<i){b=h;do{Ba(d|0,0,+(i-b))|0;a=mb(c,d>>2)|0;b=+Za()}while((a|0)==0&b<i);j=a}else j=0;Hj(1);e=j;f=(e|0)==0;g=f?-8:0;return g|0}function _i(a){a=a|0;var b=0;do switch(c[a>>2]|0){case 12:{c[a+80>>2]=Ka(c[a+16>>2]|0,c[a+24>>2]|0)|0;break}case 13:{c[a+80>>2]=wa(c[a+16>>2]|0,c[a+24>>2]|0)|0;break}case 37:{c[a+80>>2]=_a(c[a+16>>2]|0)|0;break}case 46:{c[a+80>>2]=ib(c[a+16>>2]|0,c[a+24>>2]|0)|0;break}case 68:{c[a+80>>2]=Qa(c[a+16>>2]|0,c[a+24>>2]|0,c[a+32>>2]|0)|0;break}case 72:{c[a+80>>2]=za(c[a+16>>2]|0)|0;break}case 110:{c[a+80>>2]=gb(c[a+16>>2]|0)|0;break}case 111:{c[a+80>>2]=Ta(c[a+16>>2]|0)|0;break}case 112:{c[a+80>>2]=Ga()|0;break}case 113:{c[a+80>>2]=jb(c[a+16>>2]|0,c[a+24>>2]|0,c[a+32>>2]|0)|0;break}case 114:{c[a+80>>2]=sa(c[a+16>>2]|0)|0;break}case 115:{c[a+80>>2]=oa(c[a+16>>2]|0)|0;break}case 119:{Ca();break}case 137:{c[a+80>>2]=Xa(c[a+16>>2]|0,c[a+24>>2]|0,c[a+32>>2]|0,c[a+40>>2]|0)|0;break}case 138:{c[a+80>>2]=ua(c[a+16>>2]|0,c[a+24>>2]|0)|0;break}case 1024:{Db[c[a+4>>2]&7]();break}case 1025:{zb[c[a+4>>2]&31](c[a+16>>2]|0);break}case 1026:{Ab[c[a+4>>2]&7](c[a+16>>2]|0,c[a+24>>2]|0);break}case 1027:{Cb[c[a+4>>2]&0](c[a+16>>2]|0,c[a+24>>2]|0,c[a+32>>2]|0);break}case 2048:{c[a+80>>2]=yb[c[a+4>>2]&1]()|0;break}case 2049:{c[a+80>>2]=Bb[c[a+4>>2]&7](c[a+16>>2]|0)|0;break}case 2050:{c[a+80>>2]=Gb[c[a+4>>2]&31](c[a+16>>2]|0,c[a+24>>2]|0)|0;break}case 2051:{c[a+80>>2]=wb[c[a+4>>2]&7](c[a+16>>2]|0,c[a+24>>2]|0,c[a+32>>2]|0)|0;break}default:va(34481,34348,211,34532)}while(0);if(!(c[a+88>>2]|0)){b=a+8|0;c[b>>2]=1;Ia(b|0,2147483647)|0;return}else{Cj(a);return}}function $i(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;b=mb(c,a+8>>2)|0;d=c[a>>2]|0;e=d&128^128;f=(d&15|0)==0;if(!f){g=Ra()|0;h=a+4|0;i=(mb(c,h>>2)|0)&2147483647;if((i|0)!=(c[g+52>>2]|0)){j=1;return j|0}if((d&3|0)==1?(i=a+20|0,k=c[i>>2]|0,k|0):0){c[i>>2]=k+-1;j=0;return j|0}k=a+16|0;if(!e){nb(c,g+176>>2,k)|0;aj()}i=c[a+12>>2]|0;l=c[k>>2]|0;nb(c,i>>2,l)|0;if((l|0)==(g+168|0)){m=h;n=g}else{nb(c,l+-4>>2,i)|0;m=h;n=g}}else{m=a+4|0;n=0}a=d&8|0?2147483647:0;do o=mb(c,m>>2)|0;while((pb(c,m>>2,o,a)|0)!=(o|0));if(!(f|(e|0)!=0)){nb(c,n+176>>2,0)|0;bj()}if(!((b|0)!=0|(o|0)<0)){j=0;return j|0}Ia(m|0,1)|0;j=0;return j|0}function aj(){qb(c,9113,1)|0;return}function bj(){if((qb(c,9113,-1)|0)!=1)return;if(!(mb(c,9114)|0))return;Ia(36452,2147483647)|0;return}function cj(a){a=a|0;var b=0;if((c[a>>2]&15|0)==0?(pb(c,a+4>>2,0,16)|0)==0:0){b=0;return b|0}b=dj(a,0)|0;return b|0}function dj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=c[a>>2]|0;do if(!(d&15))if(!(pb(c,a+4>>2,0,16)|0)){e=0;return e|0}else{f=c[a>>2]|0;break}else f=d;while(0);d=f&128^128;f=ij(a)|0;if((f|0)!=16){e=f;return e|0}f=a+4|0;g=a+8|0;h=100;while(1){if(!h)break;if(!(mb(c,f>>2)|0))break;if(!(mb(c,g>>2)|0))h=h+-1|0;else break}h=ij(a)|0;if((h|0)!=16){e=h;return e|0}a:while(1){h=mb(c,f>>2)|0;if(h|0?(i=c[a>>2]|0,(h&1073741824|0)==0|(i&4|0)==0):0){if((i&3|0)==2?(h&2147483647|0)==(c[(Ra()|0)+52>>2]|0):0){e=35;j=17;break}qb(c,g>>2,1)|0;i=h|-2147483648;pb(c,f>>2,h,i)|0;h=ej(f,i,0,b,d)|0;rb(c,g>>2,1)|0;switch(h|0){case 0:case 4:break;default:{e=h;j=17;break a}}}h=ij(a)|0;if((h|0)!=16){e=h;j=17;break}}if((j|0)==17)return e|0;return 0}function ej(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=l;l=l+16|0;h=g;La(1,h|0)|0;Pj(1,4);i=fj(a,b,d,e,f)|0;Pj(4,1);La(c[h>>2]|0,0)|0;l=g;return i|0}function fj(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0.0,p=0,q=0.0,r=0.0,s=0.0,t=0,u=0,v=0;f=l;l=l+16|0;g=f;h=(e|0)!=0;if(h){i=e+4|0;if((c[i>>2]|0)>>>0>999999999){j=22;l=f;return j|0}if(db(d|0,g|0)|0){j=22;l=f;return j|0}d=(c[e>>2]|0)-(c[g>>2]|0)|0;c[g>>2]=d;k=g+4|0;m=(c[i>>2]|0)-(c[k>>2]|0)|0;c[k>>2]=m;if((m|0)<0){i=d+-1|0;c[g>>2]=i;c[k>>2]=m+1e9;n=i}else n=d;if((n|0)<0){j=110;l=f;return j|0}}n=(qa()|0)!=0;o=n?1.0:100.0;if(n){a:while(1){if(gj(Ra()|0)|0){p=125;break}Ni();if(h){q=+hj(e);r=q>100.0?100.0:q;if(!(q<=0.0))s=r>1.0?1.0:r;else{p=110;break}}else s=o;n=0-(Ba(a|0,b|0,+s)|0)|0;switch(n|0){case 110:break;case 4:case 125:{p=n;break a;break}default:{j=0;t=21;break a}}}if((t|0)==21){l=f;return j|0}j=p;l=f;return j|0}if(!h){b:while(1){if(gj(Ra()|0)|0){u=125;break}h=0-(Ba(a|0,b|0,+o)|0)|0;switch(h|0){case 110:break;case 4:case 125:{u=h;break b;break}default:{j=0;t=21;break b}}}if((t|0)==21){l=f;return j|0}j=u;l=f;return j|0}c:while(1){if(gj(Ra()|0)|0){v=125;break}o=+hj(e);if(o<=0.0){v=110;break}u=0-(Ba(a|0,b|0,+(o>100.0?100.0:o))|0)|0;switch(u|0){case 110:break;case 4:case 125:{v=u;break c;break}default:{j=0;t=21;break c}}}if((t|0)==21){l=f;return j|0}j=v;l=f;return j|0}function gj(a){a=a|0;return (c[a>>2]|0)==2|0}function hj(a){a=a|0;var b=0,d=0;b=l;l=l+16|0;d=b;fb(d|0,0)|0;l=b;return +(+(c[a>>2]|0)*1.0e3+ +(c[a+4>>2]|0)*1.0e-06-(+(c[d>>2]|0)*1.0e3+ +(c[d+4>>2]|0)*.001))}function ij(a){a=a|0;var b=0;if(!(c[a>>2]&15)){b=(pb(c,a+4>>2,0,16)|0)&16;return b|0}else{b=jj(a)|0;return b|0}return 0}function jj(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;b=c[a>>2]|0;d=Ra()|0;e=c[d+52>>2]|0;f=a+4|0;g=mb(c,f>>2)|0;h=g&2147483647;if((b&3|0)==1&(h|0)==(e|0)){i=a+20|0;j=c[i>>2]|0;if(j>>>0>2147483646){k=11;return k|0}c[i>>2]=j+1;k=0;return k|0}if((h|0)==2147483647){k=131;return k|0}if(!(c[a>>2]&128))l=e;else{j=d+172|0;if(!(c[j>>2]|0))c[j>>2]=-12;j=(mb(c,a+8>>2)|0)==0;nb(c,d+176>>2,a+16|0)|0;l=j?e:e|-2147483648}e=(h|0)!=0;if(!(e?(b&4|0)==0|(g&1073741824|0)==0:0))m=11;if((m|0)==11?(pb(c,f>>2,g,l)|0)==(g|0):0){g=d+168|0;l=mb(c,g>>2)|0;f=a+16|0;c[f>>2]=l;c[a+12>>2]=g;if((l|0)!=(g|0))nb(c,l+-4>>2,f)|0;nb(c,g>>2,f)|0;nb(c,d+176>>2,0)|0;if(!e){k=0;return k|0}c[a+20>>2]=0;c[a>>2]=c[a>>2]|8;k=130;return k|0}nb(c,d+176>>2,0)|0;k=16;return k|0}function kj(){var a=0;a=Ra()|0;if(mb(c,a+72>>2)|0)return;if((c[a>>2]|0)!=2)return;Ha(1);return}function lj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=l;l=l+16|0;f=e;c[f>>2]=d;d=a&1023;g=Bj(96)|0;c[g+8>>2]=0;c[g>>2]=a;c[g+4>>2]=b;if(!d){h=g+88|0;c[h>>2]=1;yi(g);l=e;return}else i=0;do{b=(c[f>>2]|0)+(4-1)&~(4-1);a=c[b>>2]|0;c[f>>2]=b+4;c[g+16+(i<<3)>>2]=a;i=i+1|0}while((i|0)!=(d|0));h=g+88|0;c[h>>2]=1;yi(g);l=e;return}function mj(a){a=a|0;var b=0,d=0;if(!(c[a>>2]|0)){b=nj(a,-1)|0;return b|0}if(!(mb(c,a+12>>2)|0)){b=0;return b|0}d=a+8|0;qb(c,d>>2,1)|0;Ia(d|0,2147483647)|0;b=0;return b|0}function nj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;d=l;l=l+16|0;e=d;nb(c,e>>2,0)|0;f=a+32|0;if(pb(c,f>>2,0,1)|0){pb(c,f>>2,1,2)|0;do oj(f,0,2,1);while((pb(c,f>>2,0,2)|0)!=0)}g=a+20|0;h=c[g>>2]|0;i=(h|0)!=0;if((b|0)!=0&i){j=0;k=b;b=h;while(1){if(!(pb(c,b+8>>2,0,1)|0)){m=(j|0)==0?b:j;n=k+-1|0}else{nb(c,e>>2,(mb(c,e>>2)|0)+1|0)|0;c[b+16>>2]=e;m=j;n=k}o=c[b>>2]|0;p=(o|0)!=0;if((n|0)!=0&p){j=m;k=n;b=o}else{q=m;r=o;s=p;break}}}else{q=0;r=h;s=i}if(s){s=r+4|0;i=c[s>>2]|0;if(i|0)c[i>>2]=0;c[s>>2]=0}else c[a+4>>2]=0;c[g>>2]=r;do t=mb(c,f>>2)|0;while((pb(c,f>>2,t,0)|0)!=(t|0));if((t|0)==2)Ia(f|0,1)|0;f=mb(c,e>>2)|0;if(f|0){t=f;do{oj(e,0,t,1);t=mb(c,e>>2)|0}while((t|0)!=0)}if(!q){l=d;return 0}t=q+12|0;do u=mb(c,t>>2)|0;while((pb(c,t>>2,u,0)|0)!=(u|0));if((u|0)!=2){l=d;return 0}Ia(t|0,1)|0;l=d;return 0}function oj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0.0;e=(b|0)!=0;a:do if(e){f=100;while(1){if(!f){g=7;break a}if(mb(c,b>>2)|0){g=8;break a}if((mb(c,a>>2)|0)==(d|0))f=f+-1|0;else break}return}else{f=100;while(1){if(!f){g=7;break a}if((mb(c,a>>2)|0)==(d|0))f=f+-1|0;else break}return}while(0);if((g|0)==7?e:0)g=8;if((g|0)==8)qb(c,b>>2,1)|0;g=qa()|0;b:do if((mb(c,a>>2)|0)==(d|0)){f=(g|0)!=0;h=f?1.0:100.0;c:do if(f)while(1){if((mb(c,(Ra()|0)+76>>2)|0)==1)do{if(gj(Ra()|0)|0)break c;Ni()}while((Ba(a|0,d|0,+h)|0)==-110);else Ba(a|0,d|0,t)|0;if((mb(c,a>>2)|0)!=(d|0))break b}else while(1){if((mb(c,(Ra()|0)+76>>2)|0)==1)do if(gj(Ra()|0)|0)break c;while((Ba(a|0,d|0,+h)|0)==-110);else Ba(a|0,d|0,t)|0;if((mb(c,a>>2)|0)!=(d|0))break b}while(0);if(!e)return;rb(c,b>>2,1)|0;return}while(0);if(!e)return;rb(c,b>>2,1)|0;return}function pj(a){a=a|0;var b=0,d=0,e=0;if(!(c[a>>2]|0))return 0;b=a+12|0;if(!(mb(c,b>>2)|0))return 0;tb(c,b>>2,-2147483648)|0;d=a+8|0;qb(c,d>>2,1)|0;Ia(d|0,2147483647)|0;d=mb(c,b>>2)|0;if(!(d&2147483647))return 0;else e=d;do{oj(b,0,e,0);e=mb(c,b>>2)|0}while((e&2147483647|0)!=0);return 0}function qj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=l;l=l+48|0;e=d;f=e;g=f+48|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));f=a;h=e;g=f+48|0;do{c[f>>2]=c[h>>2];f=f+4|0;h=h+4|0}while((f|0)<(g|0));if(!b){l=d;return 0}h=c[b>>2]|0;c[a+16>>2]=h&2147483647;if((h|0)>=0){l=d;return 0}c[a>>2]=-1;l=d;return 0}function rj(a){a=a|0;var b=0,d=0;if(!(c[a>>2]|0)){b=nj(a,1)|0;return b|0}if(!(mb(c,a+12>>2)|0)){b=0;return b|0}d=a+8|0;qb(c,d>>2,1)|0;Ia(d|0,1)|0;b=0;return b|0}function sj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=l;l=l+32|0;f=e+4|0;g=e;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;c[f+16>>2]=0;h=c[a+16>>2]|0;if(c[b>>2]&15|0?(i=(mb(c,b+4>>2)|0)&2147483647,(i|0)!=(c[(Ra()|0)+52>>2]|0)):0){j=1;l=e;return j|0}if(d|0?(c[d+4>>2]|0)>>>0>999999999:0){j=22;l=e;return j|0}kj();if(!(c[a>>2]|0)){i=a+32|0;if(pb(c,i>>2,0,1)|0){pb(c,i>>2,1,2)|0;do oj(i,0,2,1);while((pb(c,i>>2,0,2)|0)!=0)}k=f+12|0;nb(c,k>>2,2)|0;nb(c,f+8>>2,0)|0;m=a+4|0;n=c[m>>2]|0;c[f+4>>2]=n;c[m>>2]=f;m=a+20|0;c[((c[m>>2]|0)==0?m:n)>>2]=f;do o=mb(c,i>>2)|0;while((pb(c,i>>2,o,0)|0)!=(o|0));if((o|0)==2){Ia(i|0,1)|0;p=k;q=2;r=0}else{p=k;q=2;r=0}}else{k=a+8|0;i=mb(c,k>>2)|0;qb(c,a+12>>2,1)|0;p=k;q=i;r=1}$i(b)|0;La(2,g|0)|0;if((c[g>>2]|0)==1)La(1,0)|0;i=(r|0)!=0;r=(i^1)&1;do s=fj(p,q,h,d,r)|0;while((mb(c,p>>2)|0)==(q|0)&(s|4|0)==4);p=(s|0)==4?0:s;a:do if(i){if((p|0)==125){s=(mb(c,a+8>>2)|0)==(q|0);t=s?125:0}else t=p;s=a+12|0;if((qb(c,s>>2,-1)|0)==-2147483647){Ia(s|0,1)|0;u=t;v=0}else{u=t;v=0}}else{s=pb(c,f+8>>2,0,2)|0;if(s|0){r=f+12|0;if(!(pb(c,r>>2,0,1)|0)){u=p;v=s;break}pb(c,r>>2,1,2)|0;while(1){oj(r,0,2,1);if(!(pb(c,r>>2,0,2)|0)){u=p;v=s;break a}}}s=a+32|0;if(pb(c,s>>2,0,1)|0){pb(c,s>>2,1,2)|0;do oj(s,0,2,1);while((pb(c,s>>2,0,2)|0)!=0)}r=a+4|0;if((c[r>>2]|0)!=(f|0)){d=c[f>>2]|0;if(d|0)c[d+4>>2]=c[f+4>>2]}else c[r>>2]=c[f+4>>2];r=a+20|0;if((c[r>>2]|0)!=(f|0)){d=c[f+4>>2]|0;if(d|0)c[d>>2]=c[f>>2]}else c[r>>2]=c[f>>2];do w=mb(c,s>>2)|0;while((pb(c,s>>2,w,0)|0)!=(w|0));if((w|0)==2)Ia(s|0,1)|0;r=f+16|0;d=c[r>>2]|0;if((d|0)!=0?(qb(c,d>>2,-1)|0)==1:0){Ia(c[r>>2]|0,1)|0;u=p;v=0}else{u=p;v=0}}while(0);p=cj(b)|0;w=(p|0)==0?u:p;if(!v){La(c[g>>2]|0,0)|0;if((w|0)==125){kj();La(1,0)|0;x=125}else x=w}else{if(!(c[f+4>>2]|0))qb(c,b+8>>2,1)|0;v=c[f>>2]|0;if(!v)rb(c,b+8>>2,1)|0;else{f=v+12|0;v=b+4|0;nb(c,f>>2,0)|0;do{}while((ta(f|0,0,v|0,mb(c,f>>2)|0)|0)==-11)}La(c[g>>2]|0,0)|0;x=(w|0)==125?0:w}kj();j=x;l=e;return j|0}function tj(a,b){a=a|0;b=b|0;var d=0,e=0;a:while(1){switch(pb(c,a>>2,0,1)|0){case 0:{break a;break}case 2:{d=9;break a;break}case 1:{pb(c,a>>2,1,3)|0;break}case 3:break;default:continue a}oj(a,0,3,1)}if((d|0)==9)return 0;cb(16,a|0);Db[b&7]();na(0);do e=mb(c,a>>2)|0;while((pb(c,a>>2,e,2)|0)!=(e|0));if((e|0)!=3)return 0;Ia(a|0,2147483647)|0;return 0}function uj(a){a=a|0;var b=0;do b=mb(c,a>>2)|0;while((pb(c,a>>2,b,0)|0)!=(b|0));if((b|0)!=3)return;Ia(a|0,2147483647)|0;return}function vj(a,b){a=a|0;b=b|0;var d=0,e=0;d=l;l=l+16|0;e=d;if((mb(c,a>>2)|0)==2){nb(c,e>>2,0)|0;pb(c,e>>2,0,0)|0;l=d;return 0}else{tj(a,b)|0;l=d;return 0}return 0}function wj(a,b){a=a|0;b=b|0;return sj(a,b,0)|0}function xj(a){a=a|0;return 0}function yj(a){a=a|0;c[a>>2]=0;return 0}function zj(a){a=a|0;return 0}function Aj(a,b){a=a|0;b=b|0;var d=0,e=0;d=l;l=l+32|0;e=d;c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[e+24>>2]=0;c[a>>2]=c[e>>2];c[a+4>>2]=c[e+4>>2];c[a+8>>2]=c[e+8>>2];c[a+12>>2]=c[e+12>>2];c[a+16>>2]=c[e+16>>2];c[a+20>>2]=c[e+20>>2];c[a+24>>2]=c[e+24>>2];if(!b){l=d;return 0}c[a>>2]=c[b>>2];l=d;return 0}function Bj(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0;b=l;l=l+16|0;d=b+4|0;e=b;if(!(c[9371]|0)){cj(37508)|0;if(!(c[9371]|0)){c[9373]=4096;c[9372]=4096;c[9374]=-1;c[9375]=-1;c[9376]=2;c[9495]=2;(yj(d)|0)==0?(Aj(37984,d)|0)==0:0;f=e&-16^1431655768;c[e>>2]=f;nb(c,9371,f)|0}$i(37508)|0}if(c[9495]&2|0?cj(37984)|0:0){g=0;l=b;return g|0}do if(a>>>0<245){f=a>>>0<11?16:a+11&-8;h=f>>>3;i=c[9384]|0;j=i>>>h;if(j&3|0){k=(j&1^1)+h|0;m=37576+(k<<1<<2)|0;n=m+8|0;o=c[n>>2]|0;p=o+8|0;q=c[p>>2]|0;do if((m|0)!=(q|0)){if(q>>>0<(c[9388]|0)>>>0)bb();r=q+12|0;if((c[r>>2]|0)==(o|0)){c[r>>2]=m;c[n>>2]=q;break}else bb()}else c[9384]=i&~(1<<k);while(0);q=k<<3;c[o+4>>2]=q|3;n=o+q+4|0;c[n>>2]=c[n>>2]|1;s=p;break}n=c[9386]|0;if(f>>>0>n>>>0){if(j|0){q=2<<h;m=j<<h&(q|0-q);q=(m&0-m)+-1|0;m=q>>>12&16;r=q>>>m;q=r>>>5&8;t=r>>>q;r=t>>>2&4;u=t>>>r;t=u>>>1&2;v=u>>>t;u=v>>>1&1;w=(q|m|r|t|u)+(v>>>u)|0;u=37576+(w<<1<<2)|0;v=u+8|0;t=c[v>>2]|0;r=t+8|0;m=c[r>>2]|0;do if((u|0)!=(m|0)){if(m>>>0<(c[9388]|0)>>>0)bb();q=m+12|0;if((c[q>>2]|0)==(t|0)){c[q>>2]=u;c[v>>2]=m;x=i;break}else bb()}else{q=i&~(1<<w);c[9384]=q;x=q}while(0);m=(w<<3)-f|0;c[t+4>>2]=f|3;v=t+f|0;c[v+4>>2]=m|1;c[v+m>>2]=m;if(n|0){u=c[9389]|0;h=n>>>3;j=37576+(h<<1<<2)|0;p=1<<h;if(x&p){h=j+8|0;o=c[h>>2]|0;if(o>>>0<(c[9388]|0)>>>0)bb();else{y=h;z=o}}else{c[9384]=x|p;y=j+8|0;z=j}c[y>>2]=u;c[z+12>>2]=u;c[u+8>>2]=z;c[u+12>>2]=j}c[9386]=m;c[9389]=v;s=r;break}v=c[9385]|0;if(v){m=(v&0-v)+-1|0;j=m>>>12&16;u=m>>>j;m=u>>>5&8;p=u>>>m;u=p>>>2&4;o=p>>>u;p=o>>>1&2;h=o>>>p;o=h>>>1&1;k=c[37840+((m|j|u|p|o)+(h>>>o)<<2)>>2]|0;o=(c[k+4>>2]&-8)-f|0;h=c[k+16+(((c[k+16>>2]|0)==0&1)<<2)>>2]|0;if(!h){A=o;B=k}else{p=h;h=o;o=k;while(1){k=(c[p+4>>2]&-8)-f|0;u=k>>>0<h>>>0;j=u?k:h;k=u?p:o;p=c[p+16+(((c[p+16>>2]|0)==0&1)<<2)>>2]|0;if(!p){A=j;B=k;break}else{h=j;o=k}}}o=c[9388]|0;if(B>>>0<o>>>0)bb();h=B+f|0;if(B>>>0>=h>>>0)bb();p=c[B+24>>2]|0;r=c[B+12>>2]|0;do if((r|0)==(B|0)){t=B+20|0;w=c[t>>2]|0;if(!w){k=B+16|0;j=c[k>>2]|0;if(!j){C=0;break}else{D=j;E=k}}else{D=w;E=t}while(1){t=D+20|0;w=c[t>>2]|0;if(w|0){D=w;E=t;continue}t=D+16|0;w=c[t>>2]|0;if(!w)break;else{D=w;E=t}}if(E>>>0<o>>>0)bb();else{c[E>>2]=0;C=D;break}}else{t=c[B+8>>2]|0;if(t>>>0<o>>>0)bb();w=t+12|0;if((c[w>>2]|0)!=(B|0))bb();k=r+8|0;if((c[k>>2]|0)==(B|0)){c[w>>2]=r;c[k>>2]=t;C=r;break}else bb()}while(0);a:do if(p|0){r=c[B+28>>2]|0;o=37840+(r<<2)|0;do if((B|0)==(c[o>>2]|0)){c[o>>2]=C;if(!C){c[9385]=v&~(1<<r);break a}}else if(p>>>0>=(c[9388]|0)>>>0){c[p+16+(((c[p+16>>2]|0)!=(B|0)&1)<<2)>>2]=C;if(!C)break a;else break}else bb();while(0);r=c[9388]|0;if(C>>>0<r>>>0)bb();c[C+24>>2]=p;o=c[B+16>>2]|0;do if(o|0)if(o>>>0<r>>>0)bb();else{c[C+16>>2]=o;c[o+24>>2]=C;break}while(0);o=c[B+20>>2]|0;if(o|0)if(o>>>0<(c[9388]|0)>>>0)bb();else{c[C+20>>2]=o;c[o+24>>2]=C;break}}while(0);if(A>>>0<16){p=A+f|0;c[B+4>>2]=p|3;v=B+p+4|0;c[v>>2]=c[v>>2]|1}else{c[B+4>>2]=f|3;c[h+4>>2]=A|1;c[h+A>>2]=A;if(n|0){v=c[9389]|0;p=n>>>3;o=37576+(p<<1<<2)|0;r=1<<p;if(i&r){p=o+8|0;t=c[p>>2]|0;if(t>>>0<(c[9388]|0)>>>0)bb();else{F=p;G=t}}else{c[9384]=i|r;F=o+8|0;G=o}c[F>>2]=v;c[G+12>>2]=v;c[v+8>>2]=G;c[v+12>>2]=o}c[9386]=A;c[9389]=h}s=B+8|0}else{H=f;I=153}}else{H=f;I=153}}else if(a>>>0<=4294967231){o=a+11|0;v=o&-8;r=c[9385]|0;if(r){t=0-v|0;p=o>>>8;if(p)if(v>>>0>16777215)J=31;else{o=(p+1048320|0)>>>16&8;k=p<<o;p=(k+520192|0)>>>16&4;w=k<<p;k=(w+245760|0)>>>16&2;j=14-(p|o|k)+(w<<k>>>15)|0;J=v>>>(j+7|0)&1|j<<1}else J=0;j=c[37840+(J<<2)>>2]|0;b:do if(!j){K=t;L=0;M=0;I=90}else{k=t;w=0;o=v<<((J|0)==31?0:25-(J>>>1)|0);p=j;u=0;while(1){m=(c[p+4>>2]&-8)-v|0;if(m>>>0<k>>>0)if(!m){N=0;O=p;P=p;I=94;break b}else{Q=m;R=p}else{Q=k;R=u}m=c[p+20>>2]|0;p=c[p+16+(o>>>31<<2)>>2]|0;q=(m|0)==0|(m|0)==(p|0)?w:m;m=(p|0)==0;if(m){K=Q;L=q;M=R;I=90;break}else{k=Q;w=q;o=o<<((m^1)&1);u=R}}}while(0);if((I|0)==90){if((L|0)==0&(M|0)==0){j=2<<J;t=r&(j|0-j);if(!t){H=v;I=153;break}j=(t&0-t)+-1|0;t=j>>>12&16;f=j>>>t;j=f>>>5&8;h=f>>>j;f=h>>>2&4;i=h>>>f;h=i>>>1&2;n=i>>>h;i=n>>>1&1;S=c[37840+((j|t|f|h|i)+(n>>>i)<<2)>>2]|0;T=0}else{S=L;T=M}if(!S){U=K;V=T}else{N=K;O=S;P=T;I=94}}if((I|0)==94)while(1){I=0;i=(c[O+4>>2]&-8)-v|0;n=i>>>0<N>>>0;h=n?i:N;i=n?O:P;O=c[O+16+(((c[O+16>>2]|0)==0&1)<<2)>>2]|0;if(!O){U=h;V=i;break}else{N=h;P=i;I=94}}if((V|0)!=0?U>>>0<((c[9386]|0)-v|0)>>>0:0){i=c[9388]|0;if(V>>>0<i>>>0)bb();h=V+v|0;if(V>>>0>=h>>>0)bb();n=c[V+24>>2]|0;f=c[V+12>>2]|0;do if((f|0)==(V|0)){t=V+20|0;j=c[t>>2]|0;if(!j){u=V+16|0;o=c[u>>2]|0;if(!o){W=0;break}else{X=o;Y=u}}else{X=j;Y=t}while(1){t=X+20|0;j=c[t>>2]|0;if(j|0){X=j;Y=t;continue}t=X+16|0;j=c[t>>2]|0;if(!j)break;else{X=j;Y=t}}if(Y>>>0<i>>>0)bb();else{c[Y>>2]=0;W=X;break}}else{t=c[V+8>>2]|0;if(t>>>0<i>>>0)bb();j=t+12|0;if((c[j>>2]|0)!=(V|0))bb();u=f+8|0;if((c[u>>2]|0)==(V|0)){c[j>>2]=f;c[u>>2]=t;W=f;break}else bb()}while(0);c:do if(n){f=c[V+28>>2]|0;i=37840+(f<<2)|0;do if((V|0)==(c[i>>2]|0)){c[i>>2]=W;if(!W){t=r&~(1<<f);c[9385]=t;Z=t;break c}}else if(n>>>0>=(c[9388]|0)>>>0){c[n+16+(((c[n+16>>2]|0)!=(V|0)&1)<<2)>>2]=W;if(!W){Z=r;break c}else break}else bb();while(0);f=c[9388]|0;if(W>>>0<f>>>0)bb();c[W+24>>2]=n;i=c[V+16>>2]|0;do if(i|0)if(i>>>0<f>>>0)bb();else{c[W+16>>2]=i;c[i+24>>2]=W;break}while(0);i=c[V+20>>2]|0;if(i)if(i>>>0<(c[9388]|0)>>>0)bb();else{c[W+20>>2]=i;c[i+24>>2]=W;Z=r;break}else Z=r}else Z=r;while(0);do if(U>>>0>=16){c[V+4>>2]=v|3;c[h+4>>2]=U|1;c[h+U>>2]=U;r=U>>>3;if(U>>>0<256){n=37576+(r<<1<<2)|0;i=c[9384]|0;f=1<<r;do if(!(i&f)){c[9384]=i|f;_=n+8|0;$=n}else{r=n+8|0;t=c[r>>2]|0;if(t>>>0>=(c[9388]|0)>>>0){_=r;$=t;break}bb()}while(0);c[_>>2]=h;c[$+12>>2]=h;c[h+8>>2]=$;c[h+12>>2]=n;break}f=U>>>8;if(f)if(U>>>0>16777215)aa=31;else{i=(f+1048320|0)>>>16&8;t=f<<i;f=(t+520192|0)>>>16&4;r=t<<f;t=(r+245760|0)>>>16&2;u=14-(f|i|t)+(r<<t>>>15)|0;aa=U>>>(u+7|0)&1|u<<1}else aa=0;u=37840+(aa<<2)|0;c[h+28>>2]=aa;t=h+16|0;c[t+4>>2]=0;c[t>>2]=0;t=1<<aa;if(!(Z&t)){c[9385]=Z|t;c[u>>2]=h;c[h+24>>2]=u;c[h+12>>2]=h;c[h+8>>2]=h;break}t=U<<((aa|0)==31?0:25-(aa>>>1)|0);r=c[u>>2]|0;while(1){if((c[r+4>>2]&-8|0)==(U|0)){I=148;break}ba=r+16+(t>>>31<<2)|0;u=c[ba>>2]|0;if(!u){I=145;break}else{t=t<<1;r=u}}if((I|0)==145)if(ba>>>0<(c[9388]|0)>>>0)bb();else{c[ba>>2]=h;c[h+24>>2]=r;c[h+12>>2]=h;c[h+8>>2]=h;break}else if((I|0)==148){t=r+8|0;n=c[t>>2]|0;u=c[9388]|0;if(n>>>0>=u>>>0&r>>>0>=u>>>0){c[n+12>>2]=h;c[t>>2]=h;c[h+8>>2]=n;c[h+12>>2]=r;c[h+24>>2]=0;break}else bb()}}else{n=U+v|0;c[V+4>>2]=n|3;t=V+n+4|0;c[t>>2]=c[t>>2]|1}while(0);s=V+8|0}else{H=v;I=153}}else{H=v;I=153}}else{H=-1;I=153}while(0);d:do if((I|0)==153){V=c[9386]|0;if(V>>>0>=H>>>0){U=V-H|0;ba=c[9389]|0;if(U>>>0>15){aa=ba+H|0;c[9389]=aa;c[9386]=U;c[aa+4>>2]=U|1;c[aa+U>>2]=U;c[ba+4>>2]=H|3}else{c[9386]=0;c[9389]=0;c[ba+4>>2]=V|3;U=ba+V+4|0;c[U>>2]=c[U>>2]|1}s=ba+8|0;break}ba=c[9387]|0;if(ba>>>0>H>>>0){U=ba-H|0;c[9387]=U;ba=c[9390]|0;V=ba+H|0;c[9390]=V;c[V+4>>2]=U|1;c[ba+4>>2]=H|3;s=ba+8|0;break}if(!(c[9371]|0)){cj(37508)|0;if(!(c[9371]|0)){c[9373]=4096;c[9372]=4096;c[9374]=-1;c[9375]=-1;c[9376]=2;c[9495]=2;(yj(d)|0)==0?(Aj(37984,d)|0)==0:0;ba=e&-16^1431655768;c[e>>2]=ba;nb(c,9371,ba)|0}$i(37508)|0}ba=H+48|0;U=c[9373]|0;V=H+47|0;aa=U+V&0-U;if(aa>>>0>H>>>0){U=c[9494]|0;if(U|0?(Z=c[9492]|0,$=Z+aa|0,$>>>0<=Z>>>0|$>>>0>U>>>0):0){s=0;break}if(!(c[9495]&4)){U=c[9390]|0;e:do if(U){$=38012;while(1){Z=c[$>>2]|0;if(Z>>>0<=U>>>0?(ca=$+4|0,(Z+(c[ca>>2]|0)|0)>>>0>U>>>0):0)break;Z=c[$+8>>2]|0;if(!Z){I=176;break e}else $=Z}cj(37508)|0;r=c[9373]|0;Z=V-(c[9387]|0)+r&0-r;if(Z>>>0<2147483647){r=Zj(Z|0)|0;if((r|0)==((c[$>>2]|0)+(c[ca>>2]|0)|0))if((r|0)==(-1|0)){da=Z;I=190}else{ea=r;fa=Z}else{ga=r;ha=Z;I=184}}else{da=0;I=190}}else I=176;while(0);do if((I|0)==176){cj(37508)|0;U=Zj(0)|0;if((U|0)!=(-1|0)?(v=U,Z=c[9372]|0,r=Z+-1|0,_=((r&v|0)==0?0:(r+v&0-Z)-v|0)+aa|0,v=c[9492]|0,Z=_+v|0,_>>>0>H>>>0&_>>>0<2147483647):0){r=c[9494]|0;if(r|0?Z>>>0<=v>>>0|Z>>>0>r>>>0:0){da=0;I=190;break}r=Zj(_|0)|0;if((r|0)==(U|0)){ea=U;fa=_}else{ga=r;ha=_;I=184}}else{da=0;I=190}}while(0);do if((I|0)==184){_=0-ha|0;if(!(ba>>>0>ha>>>0&(ha>>>0<2147483647&(ga|0)!=(-1|0))))if((ga|0)==(-1|0)){da=0;I=190;break}else{ea=ga;fa=ha;break}r=c[9373]|0;U=V-ha+r&0-r;if(U>>>0<2147483647)if((Zj(U|0)|0)==(-1|0)){Zj(_|0)|0;da=0;I=190;break}else{ea=ga;fa=U+ha|0;break}else{ea=ga;fa=ha}}while(0);if((I|0)==190){c[9495]=c[9495]|4;ea=-1;fa=da}$i(37508)|0;ia=ea;ja=fa}else{ia=-1;ja=0}if(aa>>>0<2147483647&(ia|0)==(-1|0)){cj(37508)|0;V=Zj(aa|0)|0;ba=Zj(0)|0;$i(37508)|0;U=ba-V|0;_=U>>>0>(H+40|0)>>>0;if(V>>>0<ba>>>0&((V|0)!=(-1|0)&(ba|0)!=(-1|0))){ka=_?V:-1;la=_?U:ja;I=194}}else{ka=ia;la=ja;I=194}if((I|0)==194?(ka|0)!=(-1|0):0){U=(c[9492]|0)+la|0;c[9492]=U;if(U>>>0>(c[9493]|0)>>>0)c[9493]=U;U=c[9390]|0;do if(U){_=38012;while(1){ma=c[_>>2]|0;na=_+4|0;oa=c[na>>2]|0;if((ka|0)==(ma+oa|0)){I=205;break}V=c[_+8>>2]|0;if(!V)break;else _=V}if(((I|0)==205?(c[_+12>>2]&8|0)==0:0)?U>>>0<ka>>>0&U>>>0>=ma>>>0:0){c[na>>2]=oa+la;$=U+8|0;V=($&7|0)==0?0:0-$&7;$=U+V|0;ba=(c[9387]|0)+(la-V)|0;c[9390]=$;c[9387]=ba;c[$+4>>2]=ba|1;c[$+ba+4>>2]=40;c[9391]=c[9375];break}ba=c[9388]|0;if(ka>>>0<ba>>>0){c[9388]=ka;pa=ka}else pa=ba;ba=ka+la|0;$=38012;while(1){if((c[$>>2]|0)==(ba|0)){I=213;break}V=c[$+8>>2]|0;if(!V)break;else $=V}if((I|0)==213?(c[$+12>>2]&8|0)==0:0){c[$>>2]=ka;_=$+4|0;c[_>>2]=(c[_>>2]|0)+la;_=ka+8|0;V=ka+((_&7|0)==0?0:0-_&7)|0;_=ba+8|0;r=ba+((_&7|0)==0?0:0-_&7)|0;_=V+H|0;Z=r-V-H|0;c[V+4>>2]=H|3;do if((r|0)!=(U|0)){if((r|0)==(c[9389]|0)){v=(c[9386]|0)+Z|0;c[9386]=v;c[9389]=_;c[_+4>>2]=v|1;c[_+v>>2]=v;break}v=c[r+4>>2]|0;if((v&3|0)==1){W=v&-8;X=v>>>3;f:do if(v>>>0>=256){Y=c[r+24>>2]|0;P=c[r+12>>2]|0;do if((P|0)==(r|0)){N=r+16|0;O=N+4|0;T=c[O>>2]|0;if(!T){S=c[N>>2]|0;if(!S){qa=0;break}else{ra=S;sa=N}}else{ra=T;sa=O}while(1){O=ra+20|0;T=c[O>>2]|0;if(T|0){ra=T;sa=O;continue}O=ra+16|0;T=c[O>>2]|0;if(!T)break;else{ra=T;sa=O}}if(sa>>>0<pa>>>0)bb();else{c[sa>>2]=0;qa=ra;break}}else{O=c[r+8>>2]|0;if(O>>>0<pa>>>0)bb();T=O+12|0;if((c[T>>2]|0)!=(r|0))bb();N=P+8|0;if((c[N>>2]|0)==(r|0)){c[T>>2]=P;c[N>>2]=O;qa=P;break}else bb()}while(0);if(!Y)break;P=c[r+28>>2]|0;O=37840+(P<<2)|0;do if((r|0)!=(c[O>>2]|0))if(Y>>>0>=(c[9388]|0)>>>0){c[Y+16+(((c[Y+16>>2]|0)!=(r|0)&1)<<2)>>2]=qa;if(!qa)break f;else break}else bb();else{c[O>>2]=qa;if(qa|0)break;c[9385]=c[9385]&~(1<<P);break f}while(0);P=c[9388]|0;if(qa>>>0<P>>>0)bb();c[qa+24>>2]=Y;O=r+16|0;N=c[O>>2]|0;do if(N|0)if(N>>>0<P>>>0)bb();else{c[qa+16>>2]=N;c[N+24>>2]=qa;break}while(0);N=c[O+4>>2]|0;if(!N)break;if(N>>>0<(c[9388]|0)>>>0)bb();else{c[qa+20>>2]=N;c[N+24>>2]=qa;break}}else{N=c[r+8>>2]|0;P=c[r+12>>2]|0;Y=37576+(X<<1<<2)|0;do if((N|0)!=(Y|0)){if(N>>>0<pa>>>0)bb();if((c[N+12>>2]|0)==(r|0))break;bb()}while(0);if((P|0)==(N|0)){c[9384]=c[9384]&~(1<<X);break}do if((P|0)==(Y|0))ta=P+8|0;else{if(P>>>0<pa>>>0)bb();O=P+8|0;if((c[O>>2]|0)==(r|0)){ta=O;break}bb()}while(0);c[N+12>>2]=P;c[ta>>2]=N}while(0);ua=r+W|0;va=W+Z|0}else{ua=r;va=Z}X=ua+4|0;c[X>>2]=c[X>>2]&-2;c[_+4>>2]=va|1;c[_+va>>2]=va;X=va>>>3;if(va>>>0<256){v=37576+(X<<1<<2)|0;Y=c[9384]|0;O=1<<X;do if(!(Y&O)){c[9384]=Y|O;wa=v+8|0;xa=v}else{X=v+8|0;T=c[X>>2]|0;if(T>>>0>=(c[9388]|0)>>>0){wa=X;xa=T;break}bb()}while(0);c[wa>>2]=_;c[xa+12>>2]=_;c[_+8>>2]=xa;c[_+12>>2]=v;break}O=va>>>8;do if(!O)ya=0;else{if(va>>>0>16777215){ya=31;break}Y=(O+1048320|0)>>>16&8;W=O<<Y;T=(W+520192|0)>>>16&4;X=W<<T;W=(X+245760|0)>>>16&2;S=14-(T|Y|W)+(X<<W>>>15)|0;ya=va>>>(S+7|0)&1|S<<1}while(0);O=37840+(ya<<2)|0;c[_+28>>2]=ya;v=_+16|0;c[v+4>>2]=0;c[v>>2]=0;v=c[9385]|0;S=1<<ya;if(!(v&S)){c[9385]=v|S;c[O>>2]=_;c[_+24>>2]=O;c[_+12>>2]=_;c[_+8>>2]=_;break}S=va<<((ya|0)==31?0:25-(ya>>>1)|0);v=c[O>>2]|0;while(1){if((c[v+4>>2]&-8|0)==(va|0)){I=280;break}za=v+16+(S>>>31<<2)|0;O=c[za>>2]|0;if(!O){I=277;break}else{S=S<<1;v=O}}if((I|0)==277)if(za>>>0<(c[9388]|0)>>>0)bb();else{c[za>>2]=_;c[_+24>>2]=v;c[_+12>>2]=_;c[_+8>>2]=_;break}else if((I|0)==280){S=v+8|0;O=c[S>>2]|0;W=c[9388]|0;if(O>>>0>=W>>>0&v>>>0>=W>>>0){c[O+12>>2]=_;c[S>>2]=_;c[_+8>>2]=O;c[_+12>>2]=v;c[_+24>>2]=0;break}else bb()}}else{O=(c[9387]|0)+Z|0;c[9387]=O;c[9390]=_;c[_+4>>2]=O|1}while(0);s=V+8|0;break d}_=38012;while(1){Z=c[_>>2]|0;if(Z>>>0<=U>>>0?(Aa=Z+(c[_+4>>2]|0)|0,Aa>>>0>U>>>0):0)break;_=c[_+8>>2]|0}_=Aa+-47|0;V=_+8|0;Z=_+((V&7|0)==0?0:0-V&7)|0;V=U+16|0;_=Z>>>0<V>>>0?U:Z;Z=_+8|0;r=ka+8|0;ba=(r&7|0)==0?0:0-r&7;r=ka+ba|0;$=la+-40-ba|0;c[9390]=r;c[9387]=$;c[r+4>>2]=$|1;c[r+$+4>>2]=40;c[9391]=c[9375];$=_+4|0;c[$>>2]=27;c[Z>>2]=c[9503];c[Z+4>>2]=c[9504];c[Z+8>>2]=c[9505];c[Z+12>>2]=c[9506];c[9503]=ka;c[9504]=la;c[9506]=0;c[9505]=Z;Z=_+24|0;do{r=Z;Z=Z+4|0;c[Z>>2]=7}while((r+8|0)>>>0<Aa>>>0);if((_|0)!=(U|0)){Z=_-U|0;c[$>>2]=c[$>>2]&-2;c[U+4>>2]=Z|1;c[_>>2]=Z;r=Z>>>3;if(Z>>>0<256){ba=37576+(r<<1<<2)|0;O=c[9384]|0;S=1<<r;do if(!(O&S)){c[9384]=O|S;Ba=ba+8|0;Ca=ba}else{r=ba+8|0;W=c[r>>2]|0;if(W>>>0>=(c[9388]|0)>>>0){Ba=r;Ca=W;break}bb()}while(0);c[Ba>>2]=U;c[Ca+12>>2]=U;c[U+8>>2]=Ca;c[U+12>>2]=ba;break}S=Z>>>8;do if(!S)Da=0;else{if(Z>>>0>16777215){Da=31;break}O=(S+1048320|0)>>>16&8;_=S<<O;$=(_+520192|0)>>>16&4;W=_<<$;_=(W+245760|0)>>>16&2;r=14-($|O|_)+(W<<_>>>15)|0;Da=Z>>>(r+7|0)&1|r<<1}while(0);S=37840+(Da<<2)|0;c[U+28>>2]=Da;c[U+20>>2]=0;c[V>>2]=0;ba=c[9385]|0;r=1<<Da;if(!(ba&r)){c[9385]=ba|r;c[S>>2]=U;c[U+24>>2]=S;c[U+12>>2]=U;c[U+8>>2]=U;break}r=Z<<((Da|0)==31?0:25-(Da>>>1)|0);ba=c[S>>2]|0;while(1){if((c[ba+4>>2]&-8|0)==(Z|0)){I=307;break}Ea=ba+16+(r>>>31<<2)|0;S=c[Ea>>2]|0;if(!S){I=304;break}else{r=r<<1;ba=S}}if((I|0)==304)if(Ea>>>0<(c[9388]|0)>>>0)bb();else{c[Ea>>2]=U;c[U+24>>2]=ba;c[U+12>>2]=U;c[U+8>>2]=U;break}else if((I|0)==307){r=ba+8|0;Z=c[r>>2]|0;V=c[9388]|0;if(Z>>>0>=V>>>0&ba>>>0>=V>>>0){c[Z+12>>2]=U;c[r>>2]=U;c[U+8>>2]=Z;c[U+12>>2]=ba;c[U+24>>2]=0;break}else bb()}}}else{Z=c[9388]|0;if((Z|0)==0|ka>>>0<Z>>>0)c[9388]=ka;c[9503]=ka;c[9504]=la;c[9506]=0;c[9393]=c[9371];c[9392]=-1;Z=0;do{r=37576+(Z<<1<<2)|0;c[r+12>>2]=r;c[r+8>>2]=r;Z=Z+1|0}while((Z|0)!=32);Z=ka+8|0;ba=(Z&7|0)==0?0:0-Z&7;Z=ka+ba|0;r=la+-40-ba|0;c[9390]=Z;c[9387]=r;c[Z+4>>2]=r|1;c[Z+r+4>>2]=40;c[9391]=c[9375]}while(0);U=c[9387]|0;if(U>>>0>H>>>0){aa=U-H|0;c[9387]=aa;U=c[9390]|0;r=U+H|0;c[9390]=r;c[r+4>>2]=aa|1;c[U+4>>2]=H|3;s=U+8|0;break}}c[(yh()|0)>>2]=12;s=0}else s=0}while(0);if(!(c[9495]&2)){g=s;l=b;return g|0}$i(37984)|0;g=s;l=b;return g|0}function Cj(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;if(!a)return;b=a+-8|0;if(c[9495]&2|0?cj(37984)|0:0)return;d=c[9388]|0;if(b>>>0<d>>>0)bb();e=c[a+-4>>2]|0;a=e&3;if((a|0)==1)bb();f=e&-8;g=b+f|0;a:do if(!(e&1)){h=c[b>>2]|0;if(a|0){i=b+(0-h)|0;j=h+f|0;if(i>>>0<d>>>0)bb();if((i|0)==(c[9389]|0)){k=g+4|0;l=c[k>>2]|0;if((l&3|0)!=3){m=i;n=i;o=j;p=55;break}c[9386]=j;c[k>>2]=l&-2;c[i+4>>2]=j|1;c[i+j>>2]=j;break}l=h>>>3;if(h>>>0<256){h=c[i+8>>2]|0;k=c[i+12>>2]|0;q=37576+(l<<1<<2)|0;if((h|0)!=(q|0)){if(h>>>0<d>>>0)bb();if((c[h+12>>2]|0)!=(i|0))bb()}if((k|0)==(h|0)){c[9384]=c[9384]&~(1<<l);m=i;n=i;o=j;p=55;break}if((k|0)!=(q|0)){if(k>>>0<d>>>0)bb();q=k+8|0;if((c[q>>2]|0)==(i|0))r=q;else bb()}else r=k+8|0;c[h+12>>2]=k;c[r>>2]=h;m=i;n=i;o=j;p=55;break}h=c[i+24>>2]|0;k=c[i+12>>2]|0;do if((k|0)==(i|0)){q=i+16|0;l=q+4|0;s=c[l>>2]|0;if(!s){t=c[q>>2]|0;if(!t){u=0;break}else{v=t;w=q}}else{v=s;w=l}while(1){l=v+20|0;s=c[l>>2]|0;if(s|0){v=s;w=l;continue}l=v+16|0;s=c[l>>2]|0;if(!s)break;else{v=s;w=l}}if(w>>>0<d>>>0)bb();else{c[w>>2]=0;u=v;break}}else{l=c[i+8>>2]|0;if(l>>>0<d>>>0)bb();s=l+12|0;if((c[s>>2]|0)!=(i|0))bb();q=k+8|0;if((c[q>>2]|0)==(i|0)){c[s>>2]=k;c[q>>2]=l;u=k;break}else bb()}while(0);if(h){k=c[i+28>>2]|0;l=37840+(k<<2)|0;do if((i|0)==(c[l>>2]|0)){c[l>>2]=u;if(!u){c[9385]=c[9385]&~(1<<k);m=i;n=i;o=j;p=55;break a}}else if(h>>>0>=(c[9388]|0)>>>0){c[h+16+(((c[h+16>>2]|0)!=(i|0)&1)<<2)>>2]=u;if(!u){m=i;n=i;o=j;p=55;break a}else break}else bb();while(0);k=c[9388]|0;if(u>>>0<k>>>0)bb();c[u+24>>2]=h;l=i+16|0;q=c[l>>2]|0;do if(q|0)if(q>>>0<k>>>0)bb();else{c[u+16>>2]=q;c[q+24>>2]=u;break}while(0);q=c[l+4>>2]|0;if(q)if(q>>>0<(c[9388]|0)>>>0)bb();else{c[u+20>>2]=q;c[q+24>>2]=u;m=i;n=i;o=j;p=55;break}else{m=i;n=i;o=j;p=55}}else{m=i;n=i;o=j;p=55}}}else{m=b;n=b;o=f;p=55}while(0);do if((p|0)==55){if(m>>>0>=g>>>0)bb();f=g+4|0;b=c[f>>2]|0;if(!(b&1))bb();if(!(b&2)){u=c[9389]|0;if((g|0)==(c[9390]|0)){d=(c[9387]|0)+o|0;c[9387]=d;c[9390]=n;c[n+4>>2]=d|1;if((n|0)!=(u|0))break;c[9389]=0;c[9386]=0;break}if((g|0)==(u|0)){u=(c[9386]|0)+o|0;c[9386]=u;c[9389]=m;c[n+4>>2]=u|1;c[m+u>>2]=u;break}u=(b&-8)+o|0;d=b>>>3;b:do if(b>>>0>=256){v=c[g+24>>2]|0;w=c[g+12>>2]|0;do if((w|0)==(g|0)){r=g+16|0;a=r+4|0;e=c[a>>2]|0;if(!e){q=c[r>>2]|0;if(!q){x=0;break}else{y=q;z=r}}else{y=e;z=a}while(1){a=y+20|0;e=c[a>>2]|0;if(e|0){y=e;z=a;continue}a=y+16|0;e=c[a>>2]|0;if(!e)break;else{y=e;z=a}}if(z>>>0<(c[9388]|0)>>>0)bb();else{c[z>>2]=0;x=y;break}}else{a=c[g+8>>2]|0;if(a>>>0<(c[9388]|0)>>>0)bb();e=a+12|0;if((c[e>>2]|0)!=(g|0))bb();r=w+8|0;if((c[r>>2]|0)==(g|0)){c[e>>2]=w;c[r>>2]=a;x=w;break}else bb()}while(0);if(v|0){w=c[g+28>>2]|0;a=37840+(w<<2)|0;do if((g|0)==(c[a>>2]|0)){c[a>>2]=x;if(!x){c[9385]=c[9385]&~(1<<w);break b}}else if(v>>>0>=(c[9388]|0)>>>0){c[v+16+(((c[v+16>>2]|0)!=(g|0)&1)<<2)>>2]=x;if(!x)break b;else break}else bb();while(0);w=c[9388]|0;if(x>>>0<w>>>0)bb();c[x+24>>2]=v;a=g+16|0;r=c[a>>2]|0;do if(r|0)if(r>>>0<w>>>0)bb();else{c[x+16>>2]=r;c[r+24>>2]=x;break}while(0);r=c[a+4>>2]|0;if(r|0)if(r>>>0<(c[9388]|0)>>>0)bb();else{c[x+20>>2]=r;c[r+24>>2]=x;break}}}else{r=c[g+8>>2]|0;w=c[g+12>>2]|0;v=37576+(d<<1<<2)|0;if((r|0)!=(v|0)){if(r>>>0<(c[9388]|0)>>>0)bb();if((c[r+12>>2]|0)!=(g|0))bb()}if((w|0)==(r|0)){c[9384]=c[9384]&~(1<<d);break}if((w|0)!=(v|0)){if(w>>>0<(c[9388]|0)>>>0)bb();v=w+8|0;if((c[v>>2]|0)==(g|0))A=v;else bb()}else A=w+8|0;c[r+12>>2]=w;c[A>>2]=r}while(0);c[n+4>>2]=u|1;c[m+u>>2]=u;if((n|0)==(c[9389]|0)){c[9386]=u;break}else B=u}else{c[f>>2]=b&-2;c[n+4>>2]=o|1;c[m+o>>2]=o;B=o}d=B>>>3;if(B>>>0<256){j=37576+(d<<1<<2)|0;i=c[9384]|0;l=1<<d;if(i&l){d=j+8|0;r=c[d>>2]|0;if(r>>>0<(c[9388]|0)>>>0)bb();else{C=d;D=r}}else{c[9384]=i|l;C=j+8|0;D=j}c[C>>2]=n;c[D+12>>2]=n;c[n+8>>2]=D;c[n+12>>2]=j;break}j=B>>>8;if(j)if(B>>>0>16777215)E=31;else{l=(j+1048320|0)>>>16&8;i=j<<l;j=(i+520192|0)>>>16&4;r=i<<j;i=(r+245760|0)>>>16&2;d=14-(j|l|i)+(r<<i>>>15)|0;E=B>>>(d+7|0)&1|d<<1}else E=0;d=37840+(E<<2)|0;c[n+28>>2]=E;c[n+20>>2]=0;c[n+16>>2]=0;i=c[9385]|0;r=1<<E;do if(i&r){l=B<<((E|0)==31?0:25-(E>>>1)|0);j=c[d>>2]|0;while(1){if((c[j+4>>2]&-8|0)==(B|0)){p=126;break}F=j+16+(l>>>31<<2)|0;w=c[F>>2]|0;if(!w){p=123;break}else{l=l<<1;j=w}}if((p|0)==123)if(F>>>0<(c[9388]|0)>>>0)bb();else{c[F>>2]=n;c[n+24>>2]=j;c[n+12>>2]=n;c[n+8>>2]=n;break}else if((p|0)==126){l=j+8|0;a=c[l>>2]|0;w=c[9388]|0;if(a>>>0>=w>>>0&j>>>0>=w>>>0){c[a+12>>2]=n;c[l>>2]=n;c[n+8>>2]=a;c[n+12>>2]=j;c[n+24>>2]=0;break}else bb()}}else{c[9385]=i|r;c[d>>2]=n;c[n+24>>2]=d;c[n+12>>2]=n;c[n+8>>2]=n}while(0);d=(c[9392]|0)+-1|0;c[9392]=d;if(!d){d=38020;while(1){r=c[d>>2]|0;if(!r)break;else d=r+8|0}c[9392]=-1}}while(0);if(!(c[9495]&2))return;$i(37984)|0;return}function Dj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(!a){d=Bj(b)|0;return d|0}if(b>>>0>4294967231){c[(yh()|0)>>2]=12;d=0;return d|0}e=b>>>0<11?16:b+11&-8;f=a+-8|0;if(c[9495]&2|0?cj(37984)|0:0){d=0;return d|0}g=Ej(f,e)|0;if(c[9495]&2|0)$i(37984)|0;if(g|0){d=g+8|0;return d|0}g=Bj(b)|0;if(!g){d=0;return d|0}e=c[a+-4>>2]|0;f=(e&-8)-((e&3|0)==0?8:4)|0;Qj(g|0,a|0,(f>>>0<b>>>0?f:b)|0)|0;Cj(a);d=g;return d|0}function Ej(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;d=a+4|0;e=c[d>>2]|0;f=e&-8;g=a+f|0;h=c[9388]|0;i=e&3;if(!((i|0)!=1&a>>>0>=h>>>0&a>>>0<g>>>0))bb();j=c[g+4>>2]|0;if(!(j&1))bb();if(!i){if(b>>>0<256){k=0;return k|0}if(f>>>0>=(b+4|0)>>>0?(f-b|0)>>>0<=c[9373]<<1>>>0:0){k=a;return k|0}k=0;return k|0}if(f>>>0>=b>>>0){i=f-b|0;if(i>>>0<=15){k=a;return k|0}l=a+b|0;c[d>>2]=e&1|b|2;c[l+4>>2]=i|3;m=l+i+4|0;c[m>>2]=c[m>>2]|1;Fj(l,i);k=a;return k|0}if((g|0)==(c[9390]|0)){i=(c[9387]|0)+f|0;l=i-b|0;m=a+b|0;if(i>>>0<=b>>>0){k=0;return k|0}c[d>>2]=e&1|b|2;c[m+4>>2]=l|1;c[9390]=m;c[9387]=l;k=a;return k|0}if((g|0)==(c[9389]|0)){l=(c[9386]|0)+f|0;if(l>>>0<b>>>0){k=0;return k|0}m=l-b|0;i=e&1;if(m>>>0>15){n=a+b|0;o=n+m|0;c[d>>2]=i|b|2;c[n+4>>2]=m|1;c[o>>2]=m;p=o+4|0;c[p>>2]=c[p>>2]&-2;q=n;r=m}else{c[d>>2]=i|l|2;i=a+l+4|0;c[i>>2]=c[i>>2]|1;q=0;r=0}c[9386]=r;c[9389]=q;k=a;return k|0}if(j&2|0){k=0;return k|0}q=(j&-8)+f|0;if(q>>>0<b>>>0){k=0;return k|0}f=q-b|0;r=j>>>3;a:do if(j>>>0>=256){i=c[g+24>>2]|0;l=c[g+12>>2]|0;do if((l|0)==(g|0)){m=g+16|0;n=m+4|0;p=c[n>>2]|0;if(!p){o=c[m>>2]|0;if(!o){s=0;break}else{t=o;u=m}}else{t=p;u=n}while(1){n=t+20|0;p=c[n>>2]|0;if(p|0){t=p;u=n;continue}n=t+16|0;p=c[n>>2]|0;if(!p)break;else{t=p;u=n}}if(u>>>0<h>>>0)bb();else{c[u>>2]=0;s=t;break}}else{n=c[g+8>>2]|0;if(n>>>0<h>>>0)bb();p=n+12|0;if((c[p>>2]|0)!=(g|0))bb();m=l+8|0;if((c[m>>2]|0)==(g|0)){c[p>>2]=l;c[m>>2]=n;s=l;break}else bb()}while(0);if(i|0){l=c[g+28>>2]|0;n=37840+(l<<2)|0;do if((g|0)==(c[n>>2]|0)){c[n>>2]=s;if(!s){c[9385]=c[9385]&~(1<<l);break a}}else if(i>>>0>=(c[9388]|0)>>>0){c[i+16+(((c[i+16>>2]|0)!=(g|0)&1)<<2)>>2]=s;if(!s)break a;else break}else bb();while(0);l=c[9388]|0;if(s>>>0<l>>>0)bb();c[s+24>>2]=i;n=g+16|0;m=c[n>>2]|0;do if(m|0)if(m>>>0<l>>>0)bb();else{c[s+16>>2]=m;c[m+24>>2]=s;break}while(0);m=c[n+4>>2]|0;if(m|0)if(m>>>0<(c[9388]|0)>>>0)bb();else{c[s+20>>2]=m;c[m+24>>2]=s;break}}}else{m=c[g+8>>2]|0;l=c[g+12>>2]|0;i=37576+(r<<1<<2)|0;if((m|0)!=(i|0)){if(m>>>0<h>>>0)bb();if((c[m+12>>2]|0)!=(g|0))bb()}if((l|0)==(m|0)){c[9384]=c[9384]&~(1<<r);break}if((l|0)!=(i|0)){if(l>>>0<h>>>0)bb();i=l+8|0;if((c[i>>2]|0)==(g|0))v=i;else bb()}else v=l+8|0;c[m+12>>2]=l;c[v>>2]=m}while(0);v=e&1;if(f>>>0<16){c[d>>2]=q|v|2;e=a+q+4|0;c[e>>2]=c[e>>2]|1;k=a;return k|0}else{e=a+b|0;c[d>>2]=v|b|2;c[e+4>>2]=f|3;b=e+f+4|0;c[b>>2]=c[b>>2]|1;Fj(e,f);k=a;return k|0}return 0}function Fj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;d=a+b|0;e=c[a+4>>2]|0;a:do if(!(e&1)){f=c[a>>2]|0;if(!(e&3))return;g=a+(0-f)|0;h=f+b|0;i=c[9388]|0;if(g>>>0<i>>>0)bb();if((g|0)==(c[9389]|0)){j=d+4|0;k=c[j>>2]|0;if((k&3|0)!=3){l=g;m=h;break}c[9386]=h;c[j>>2]=k&-2;c[g+4>>2]=h|1;c[g+h>>2]=h;return}k=f>>>3;if(f>>>0<256){f=c[g+8>>2]|0;j=c[g+12>>2]|0;n=37576+(k<<1<<2)|0;if((f|0)!=(n|0)){if(f>>>0<i>>>0)bb();if((c[f+12>>2]|0)!=(g|0))bb()}if((j|0)==(f|0)){c[9384]=c[9384]&~(1<<k);l=g;m=h;break}if((j|0)!=(n|0)){if(j>>>0<i>>>0)bb();n=j+8|0;if((c[n>>2]|0)==(g|0))o=n;else bb()}else o=j+8|0;c[f+12>>2]=j;c[o>>2]=f;l=g;m=h;break}f=c[g+24>>2]|0;j=c[g+12>>2]|0;do if((j|0)==(g|0)){n=g+16|0;k=n+4|0;p=c[k>>2]|0;if(!p){q=c[n>>2]|0;if(!q){r=0;break}else{s=q;t=n}}else{s=p;t=k}while(1){k=s+20|0;p=c[k>>2]|0;if(p|0){s=p;t=k;continue}k=s+16|0;p=c[k>>2]|0;if(!p)break;else{s=p;t=k}}if(t>>>0<i>>>0)bb();else{c[t>>2]=0;r=s;break}}else{k=c[g+8>>2]|0;if(k>>>0<i>>>0)bb();p=k+12|0;if((c[p>>2]|0)!=(g|0))bb();n=j+8|0;if((c[n>>2]|0)==(g|0)){c[p>>2]=j;c[n>>2]=k;r=j;break}else bb()}while(0);if(f){j=c[g+28>>2]|0;i=37840+(j<<2)|0;do if((g|0)==(c[i>>2]|0)){c[i>>2]=r;if(!r){c[9385]=c[9385]&~(1<<j);l=g;m=h;break a}}else if(f>>>0>=(c[9388]|0)>>>0){c[f+16+(((c[f+16>>2]|0)!=(g|0)&1)<<2)>>2]=r;if(!r){l=g;m=h;break a}else break}else bb();while(0);j=c[9388]|0;if(r>>>0<j>>>0)bb();c[r+24>>2]=f;i=g+16|0;k=c[i>>2]|0;do if(k|0)if(k>>>0<j>>>0)bb();else{c[r+16>>2]=k;c[k+24>>2]=r;break}while(0);k=c[i+4>>2]|0;if(k)if(k>>>0<(c[9388]|0)>>>0)bb();else{c[r+20>>2]=k;c[k+24>>2]=r;l=g;m=h;break}else{l=g;m=h}}else{l=g;m=h}}else{l=a;m=b}while(0);b=c[9388]|0;if(d>>>0<b>>>0)bb();a=d+4|0;r=c[a>>2]|0;if(!(r&2)){s=c[9389]|0;if((d|0)==(c[9390]|0)){t=(c[9387]|0)+m|0;c[9387]=t;c[9390]=l;c[l+4>>2]=t|1;if((l|0)!=(s|0))return;c[9389]=0;c[9386]=0;return}if((d|0)==(s|0)){s=(c[9386]|0)+m|0;c[9386]=s;c[9389]=l;c[l+4>>2]=s|1;c[l+s>>2]=s;return}s=(r&-8)+m|0;t=r>>>3;b:do if(r>>>0>=256){o=c[d+24>>2]|0;e=c[d+12>>2]|0;do if((e|0)==(d|0)){k=d+16|0;j=k+4|0;f=c[j>>2]|0;if(!f){n=c[k>>2]|0;if(!n){u=0;break}else{v=n;w=k}}else{v=f;w=j}while(1){j=v+20|0;f=c[j>>2]|0;if(f|0){v=f;w=j;continue}j=v+16|0;f=c[j>>2]|0;if(!f)break;else{v=f;w=j}}if(w>>>0<b>>>0)bb();else{c[w>>2]=0;u=v;break}}else{j=c[d+8>>2]|0;if(j>>>0<b>>>0)bb();f=j+12|0;if((c[f>>2]|0)!=(d|0))bb();k=e+8|0;if((c[k>>2]|0)==(d|0)){c[f>>2]=e;c[k>>2]=j;u=e;break}else bb()}while(0);if(o|0){e=c[d+28>>2]|0;h=37840+(e<<2)|0;do if((d|0)==(c[h>>2]|0)){c[h>>2]=u;if(!u){c[9385]=c[9385]&~(1<<e);break b}}else if(o>>>0>=(c[9388]|0)>>>0){c[o+16+(((c[o+16>>2]|0)!=(d|0)&1)<<2)>>2]=u;if(!u)break b;else break}else bb();while(0);e=c[9388]|0;if(u>>>0<e>>>0)bb();c[u+24>>2]=o;h=d+16|0;g=c[h>>2]|0;do if(g|0)if(g>>>0<e>>>0)bb();else{c[u+16>>2]=g;c[g+24>>2]=u;break}while(0);g=c[h+4>>2]|0;if(g|0)if(g>>>0<(c[9388]|0)>>>0)bb();else{c[u+20>>2]=g;c[g+24>>2]=u;break}}}else{g=c[d+8>>2]|0;e=c[d+12>>2]|0;o=37576+(t<<1<<2)|0;if((g|0)!=(o|0)){if(g>>>0<b>>>0)bb();if((c[g+12>>2]|0)!=(d|0))bb()}if((e|0)==(g|0)){c[9384]=c[9384]&~(1<<t);break}if((e|0)!=(o|0)){if(e>>>0<b>>>0)bb();o=e+8|0;if((c[o>>2]|0)==(d|0))x=o;else bb()}else x=e+8|0;c[g+12>>2]=e;c[x>>2]=g}while(0);c[l+4>>2]=s|1;c[l+s>>2]=s;if((l|0)==(c[9389]|0)){c[9386]=s;return}else y=s}else{c[a>>2]=r&-2;c[l+4>>2]=m|1;c[l+m>>2]=m;y=m}m=y>>>3;if(y>>>0<256){r=37576+(m<<1<<2)|0;a=c[9384]|0;s=1<<m;if(a&s){m=r+8|0;x=c[m>>2]|0;if(x>>>0<(c[9388]|0)>>>0)bb();else{z=m;A=x}}else{c[9384]=a|s;z=r+8|0;A=r}c[z>>2]=l;c[A+12>>2]=l;c[l+8>>2]=A;c[l+12>>2]=r;return}r=y>>>8;if(r)if(y>>>0>16777215)B=31;else{A=(r+1048320|0)>>>16&8;z=r<<A;r=(z+520192|0)>>>16&4;s=z<<r;z=(s+245760|0)>>>16&2;a=14-(r|A|z)+(s<<z>>>15)|0;B=y>>>(a+7|0)&1|a<<1}else B=0;a=37840+(B<<2)|0;c[l+28>>2]=B;c[l+20>>2]=0;c[l+16>>2]=0;z=c[9385]|0;s=1<<B;if(!(z&s)){c[9385]=z|s;c[a>>2]=l;c[l+24>>2]=a;c[l+12>>2]=l;c[l+8>>2]=l;return}s=y<<((B|0)==31?0:25-(B>>>1)|0);B=c[a>>2]|0;while(1){if((c[B+4>>2]&-8|0)==(y|0)){C=121;break}D=B+16+(s>>>31<<2)|0;a=c[D>>2]|0;if(!a){C=118;break}else{s=s<<1;B=a}}if((C|0)==118){if(D>>>0<(c[9388]|0)>>>0)bb();c[D>>2]=l;c[l+24>>2]=B;c[l+12>>2]=l;c[l+8>>2]=l;return}else if((C|0)==121){C=B+8|0;D=c[C>>2]|0;s=c[9388]|0;if(!(D>>>0>=s>>>0&B>>>0>=s>>>0))bb();c[D+12>>2]=l;c[C>>2]=l;c[l+8>>2]=D;c[l+12>>2]=B;c[l+24>>2]=0;return}}function Gj(){}function Hj(a){a=a|0}function Ij(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=b-d>>>0;e=b-d-(c>>>0>a>>>0|0)>>>0;return (D=e,a-c>>>0|0)|0}function Jj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;d=d&255;if((e|0)>=67){while(b&3){a[b>>0]=d;b=b+1|0}g=f&-4|0;h=g-64|0;i=d|d<<8|d<<16|d<<24;while((b|0)<=(h|0)){c[b>>2]=i;c[b+4>>2]=i;c[b+8>>2]=i;c[b+12>>2]=i;c[b+16>>2]=i;c[b+20>>2]=i;c[b+24>>2]=i;c[b+28>>2]=i;c[b+32>>2]=i;c[b+36>>2]=i;c[b+40>>2]=i;c[b+44>>2]=i;c[b+48>>2]=i;c[b+52>>2]=i;c[b+56>>2]=i;c[b+60>>2]=i;b=b+64|0}while((b|0)<(g|0)){c[b>>2]=i;b=b+4|0}}while((b|0)<(f|0)){a[b>>0]=d;b=b+1|0}return f-e|0}function Kj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=a+c>>>0;return (D=b+d+(e>>>0<a>>>0|0)>>>0,e|0)|0}function Lj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;q=q+1|0;c[a>>2]=q;while((f|0)<(e|0)){if(!(c[d+(f<<3)>>2]|0)){c[d+(f<<3)>>2]=q;c[d+((f<<3)+4)>>2]=b;c[d+((f<<3)+8)>>2]=0;D=e;return d|0}f=f+1|0}e=e*2|0;d=Dj(d|0,8*(e+1|0)|0)|0;d=Lj(a|0,b|0,d|0,e|0)|0;D=e;return d|0}function Mj(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}D=a<<c-32;return 0}function Nj(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}D=0;return b>>>c-32|0}function Oj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;while((e|0)<(d|0)){f=c[b+(e<<3)>>2]|0;if(!f)break;if((f|0)==(a|0))return c[b+((e<<3)+4)>>2]|0;e=e+1|0}return 0}function Pj(a,b){a=a|0;b=b|0}function Qj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((e|0)>=8192)return Na(b|0,d|0,e|0)|0;f=b|0;g=b+e|0;if((b&3)==(d&3)){while(b&3){if(!e)return f|0;a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}h=g&-4|0;e=h-64|0;while((b|0)<=(e|0)){c[b>>2]=c[d>>2];c[b+4>>2]=c[d+4>>2];c[b+8>>2]=c[d+8>>2];c[b+12>>2]=c[d+12>>2];c[b+16>>2]=c[d+16>>2];c[b+20>>2]=c[d+20>>2];c[b+24>>2]=c[d+24>>2];c[b+28>>2]=c[d+28>>2];c[b+32>>2]=c[d+32>>2];c[b+36>>2]=c[d+36>>2];c[b+40>>2]=c[d+40>>2];c[b+44>>2]=c[d+44>>2];c[b+48>>2]=c[d+48>>2];c[b+52>>2]=c[d+52>>2];c[b+56>>2]=c[d+56>>2];c[b+60>>2]=c[d+60>>2];b=b+64|0;d=d+64|0}while((b|0)<(h|0)){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0}}else{h=g-4|0;while((b|0)<(h|0)){a[b>>0]=a[d>>0]|0;a[b+1>>0]=a[d+1>>0]|0;a[b+2>>0]=a[d+2>>0]|0;a[b+3>>0]=a[d+3>>0]|0;b=b+4|0;d=d+4|0}}while((b|0)<(g|0)){a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0}return f|0}function Rj(b){b=b|0;var c=0;c=a[n+(b&255)>>0]|0;if((c|0)<8)return c|0;c=a[n+(b>>8&255)>>0]|0;if((c|0)<8)return c+8|0;c=a[n+(b>>16&255)>>0]|0;if((c|0)<8)return c+16|0;return (a[n+(b>>>24)>>0]|0)+24|0}function Sj(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0;g=a;h=b;i=h;j=d;k=e;l=k;if(!i){m=(f|0)!=0;if(!l){if(m){c[f>>2]=(g>>>0)%(j>>>0);c[f+4>>2]=0}n=0;o=(g>>>0)/(j>>>0)>>>0;return (D=n,o)|0}else{if(!m){n=0;o=0;return (D=n,o)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;n=0;o=0;return (D=n,o)|0}}m=(l|0)==0;do if(j){if(!m){p=(V(l|0)|0)-(V(i|0)|0)|0;if(p>>>0<=31){q=p+1|0;r=31-p|0;s=p-31>>31;t=q;u=g>>>(q>>>0)&s|i<<r;v=i>>>(q>>>0)&s;w=0;x=g<<r;break}if(!f){n=0;o=0;return (D=n,o)|0}c[f>>2]=a|0;c[f+4>>2]=h|b&0;n=0;o=0;return (D=n,o)|0}r=j-1|0;if(r&j|0){s=(V(j|0)|0)+33-(V(i|0)|0)|0;q=64-s|0;p=32-s|0;y=p>>31;z=s-32|0;A=z>>31;t=s;u=p-1>>31&i>>>(z>>>0)|(i<<p|g>>>(s>>>0))&A;v=A&i>>>(s>>>0);w=g<<q&y;x=(i<<q|g>>>(z>>>0))&y|g<<p&s-33>>31;break}if(f|0){c[f>>2]=r&g;c[f+4>>2]=0}if((j|0)==1){n=h|b&0;o=a|0|0;return (D=n,o)|0}else{r=Rj(j|0)|0;n=i>>>(r>>>0)|0;o=i<<32-r|g>>>(r>>>0)|0;return (D=n,o)|0}}else{if(m){if(f|0){c[f>>2]=(i>>>0)%(j>>>0);c[f+4>>2]=0}n=0;o=(i>>>0)/(j>>>0)>>>0;return (D=n,o)|0}if(!g){if(f|0){c[f>>2]=0;c[f+4>>2]=(i>>>0)%(l>>>0)}n=0;o=(i>>>0)/(l>>>0)>>>0;return (D=n,o)|0}r=l-1|0;if(!(r&l)){if(f|0){c[f>>2]=a|0;c[f+4>>2]=r&i|b&0}n=0;o=i>>>((Rj(l|0)|0)>>>0);return (D=n,o)|0}r=(V(l|0)|0)-(V(i|0)|0)|0;if(r>>>0<=30){s=r+1|0;p=31-r|0;t=s;u=i<<p|g>>>(s>>>0);v=i>>>(s>>>0);w=0;x=g<<p;break}if(!f){n=0;o=0;return (D=n,o)|0}c[f>>2]=a|0;c[f+4>>2]=h|b&0;n=0;o=0;return (D=n,o)|0}while(0);if(!t){B=x;C=w;E=v;F=u;G=0;H=0}else{b=d|0|0;d=k|e&0;e=Kj(b|0,d|0,-1,-1)|0;k=D;h=x;x=w;w=v;v=u;u=t;t=0;do{a=h;h=x>>>31|h<<1;x=t|x<<1;g=v<<1|a>>>31|0;a=v>>>31|w<<1|0;Ij(e|0,k|0,g|0,a|0)|0;i=D;l=i>>31|((i|0)<0?-1:0)<<1;t=l&1;v=Ij(g|0,a|0,l&b|0,(((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1)&d|0)|0;w=D;u=u-1|0}while((u|0)!=0);B=h;C=x;E=w;F=v;G=0;H=t}t=C;C=0;if(f|0){c[f>>2]=F;c[f+4>>2]=E}n=(t|0)>>>31|(B|C)<<1|(C<<1|t>>>31)&0|G;o=(t<<1|0>>>31)&-2|H;return (D=n,o)|0}function Tj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Sj(a,b,c,d,0)|0}function Uj(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a&65535;d=b&65535;e=S(d,c)|0;f=a>>>16;a=(e>>>16)+(S(d,f)|0)|0;d=b>>>16;b=S(d,c)|0;return (D=(a>>>16)+(S(d,f)|0)+(((a&65535)+b|0)>>>16)|0,a+b<<16|e&65535|0)|0}function Vj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;a=c;c=Uj(e,a)|0;f=D;return (D=(S(b,a)|0)+(S(d,e)|0)+f|f&0,c|0|0)|0}function Wj(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)<(b|0)&(b|0)<(c+d|0)){e=b;c=c+d|0;b=b+d|0;while((d|0)>0){b=b-1|0;c=c-1|0;d=d-1|0;a[b>>0]=a[c>>0]|0}b=e}else Qj(b,c,d)|0;return b|0}function Xj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=l;l=l+16|0;g=f|0;Sj(a,b,d,e,g)|0;l=f;return (D=c[g+4>>2]|0,c[g>>2]|0)|0}function Yj(a){a=a|0;return (a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>>24|0}function Zj(a){a=a|0;var b=0,d=0,e=0,f=0;a=a+15&-16|0;b=Z()|0;do{e=mb(c,i>>2)|0;f=e+a|0;if((a|0)>0&(f|0)<(e|0)|(f|0)<0|(f|0)>(b|0))_()|0;d=pb(c,i>>2,e|0,f|0)|0}while((d|0)!=(e|0));return e|0}function _j(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return wb[a&7](b|0,c|0,d|0)|0}function $j(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;xb[a&15](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)}function ak(a){a=a|0;return yb[a&1]()|0}function bk(a,b){a=a|0;b=b|0;zb[a&31](b|0)}function ck(a,b,c){a=a|0;b=b|0;c=c|0;Ab[a&7](b|0,c|0)}function dk(a,b){a=a|0;b=b|0;return Bb[a&7](b|0)|0}function ek(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Cb[a&0](b|0,c|0,d|0)}function fk(a){a=a|0;Db[a&7]()}function gk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Eb[a&1](b|0,c|0,d|0,e|0)|0}function hk(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Fb[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function ik(a,b,c){a=a|0;b=b|0;c=c|0;return Gb[a&31](b|0,c|0)|0}function jk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Hb[a&3](b|0,c|0,d|0,e|0,f|0)|0}function kk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Ib[a&63](b|0,c|0,d|0,e|0)}function lk(a,b,c){a=a|0;b=b|0;c=c|0;W(0);return 0}function mk(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;W(1)}function nk(){W(2);return 0}function ok(a){a=a|0;W(3)}function pk(a,b){a=a|0;b=b|0;W(4)}function qk(a){a=a|0;W(5);return 0}function rk(a,b,c){a=a|0;b=b|0;c=c|0;W(6)}function sk(){W(7)}function tk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;W(8);return 0}function uk(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;W(9)}function vk(a,b){a=a|0;b=b|0;W(10);return 0}function wk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;W(11);return 0}function xk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;W(12)}
function Vf(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if(!d)return;h=c[d+52>>2]|0;i=c[d+56>>2]|0;j=c[d+60>>2]|0;k=c[d+16>>2]|0;l=c[d+36>>2]|0;d=f<<3;f=e<<3;e=g+16|0;m=g+20|0;n=d>>c[a+4>>2];o=f>>c[a+8>>2];if(!g){c[a+20+(b<<3)>>2]=h+((S(o,k)|0)+n);c[a+20+(b<<3)+4>>2]=k;c[a+108+(b<<3)>>2]=i+((S(f>>c[a+96>>2],l)|0)+(d>>c[a+92>>2]));c[a+108+(b<<3)+4>>2]=l;p=d>>c[a+180>>2];q=f>>c[a+184>>2]}else{r=Gb[c[e>>2]&31](n,g)|0;c[a+20+(b<<3)>>2]=h+((S(Gb[c[m>>2]&31](o,g)|0,k)|0)+r);c[a+20+(b<<3)+4>>2]=k;k=f>>c[a+96>>2];r=Gb[c[e>>2]&31](d>>c[a+92>>2],g)|0;c[a+108+(b<<3)>>2]=i+((S(Gb[c[m>>2]&31](k,g)|0,l)|0)+r);c[a+108+(b<<3)+4>>2]=l;r=f>>c[a+184>>2];f=Gb[c[e>>2]&31](d>>c[a+180>>2],g)|0;p=f;q=Gb[c[m>>2]&31](r,g)|0}c[a+196+(b<<3)>>2]=j+((S(q,l)|0)+p);c[a+196+(b<<3)+4>>2]=l;return}function Wf(b,d,e,f,g,h,i,j,k,m,n){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;o=l;l=l+112|0;p=o+80|0;q=o;r=e&255;if(!m)s=(c[b+300>>2]|0)!=0;else s=1;t=s&1;if(!k)u=(c[b+296>>2]|0)!=0;else u=1;v=u&1;w=((1<<r)+k|0)<(1<<d|0);d=q+16|0;x=4<<r;y=(n|0)==0;z=c[b+344>>2]|0;A=c[(y?z:z+20|0)>>2]|0;B=c[(y?z+4|0:z+24|0)>>2]|0;z=(0-(c[b+316>>2]|0)>>(c[b+(n*88|0)+4>>2]|0)+3)+(k<<2)|0;k=(0-(c[b+324>>2]|0)>>(c[b+(n*88|0)+8>>2]|0)+3)+(m<<2)|0;m=f&255;a:do if(757>>>m&1|0){if(!u){Jj(p|0,-127,x|0)|0;break}if((c[b+328>>2]|0)>=0){if((x|0)>0)C=0;else break;while(1){a[p+C>>0]=a[g+((S(C,h)|0)+-1)>>0]|0;C=C+1|0;if((C|0)==(x|0))break a}}if((k+x|0)<=(B|0)){if((x|0)>0)D=0;else break;while(1){a[p+D>>0]=a[g+((S(D,h)|0)+-1)>>0]|0;D=D+1|0;if((D|0)==(x|0))break a}}n=B-k|0;if((n|0)>0){y=0;do{a[p+y>>0]=a[g+((S(y,h)|0)+-1)>>0]|0;y=y+1|0}while((y|0)!=(n|0));E=n}else E=0;if((x|0)>(E|0))Jj(p+E|0,a[g+((S(n+-1|0,h)|0)+-1)>>0]|0,x-E|0)|0}while(0);if(!(627>>>m&1))F=d;else{do if(s){E=g+(0-h)|0;do if((c[b+320>>2]|0)<0){k=z+x|0;if((k|0)<=(A|0)){Qj(d|0,E|0,x|0)|0;G=27;break}B=A-z|0;if((A|0)<(z|0))G=27;else{Qj(d|0,E|0,B|0)|0;Jj(d+B|0,a[d+(B+-1)>>0]|0,k-A|0)|0;G=27}}else if(e<<24>>24==0&w&u)H=E;else{Qj(d|0,E|0,x|0)|0;G=27}while(0);if((G|0)==27)if(u)H=d;else{I=-127;J=d;break}I=a[E+-1>>0]|0;J=H}else{Jj(d|0,127,x|0)|0;I=127;J=d}while(0);a[q+15>>0]=I;F=J}switch(f<<24>>24){case 3:case 8:{G=32;break}case 0:{Ib[c[34836+(v<<5)+(t<<4)+(r<<2)>>2]&63](i,j,F,p);l=o;return}default:K=F}if((G|0)==32){do if(s){t=g+(0-h)|0;do if((c[b+320>>2]|0)<0){v=x<<1;f=z+v|0;if((f|0)<=(A|0))if(e<<24>>24==0&w){Qj(d|0,t|0,v|0)|0;G=48;break}else{Qj(d|0,t|0,x|0)|0;Jj(d+x|0,a[d+(x+-1)>>0]|0,x|0)|0;G=48;break}if((z+x|0)>(A|0)){v=A-z|0;if((A|0)<(z|0)){G=48;break}Qj(d|0,t|0,v|0)|0;Jj(d+v|0,a[d+(v+-1)>>0]|0,f-A|0)|0;G=48;break}v=A-z|0;if(e<<24>>24==0&w){Qj(d|0,t|0,v|0)|0;Jj(d+v|0,a[d+(v+-1)>>0]|0,f-A|0)|0;G=48;break}else{Qj(d|0,t|0,x|0)|0;Jj(d+x|0,a[d+(x+-1)>>0]|0,x|0)|0;G=48;break}}else{f=e<<24>>24==0&w;if(!(f&u)){Qj(d|0,t|0,x|0)|0;v=d+x|0;if(f){Qj(v|0,t+x|0,x|0)|0;G=48;break}else{Jj(v|0,a[d+(x+-1)>>0]|0,x|0)|0;G=48;break}}else L=t}while(0);if((G|0)==48)if(u)L=F;else{M=-127;N=F;break}M=a[t+-1>>0]|0;N=L}else{Jj(d|0,127,x<<1|0)|0;M=127;N=F}while(0);a[q+15>>0]=M;K=N}Ib[c[34900+(m<<4)+(r<<2)>>2]&63](i,j,K,p);l=o;return}function Xf(){vj(35060,4)|0;return}function Yf(){c[8729]=1;c[8730]=2;c[8731]=3;c[8732]=4;c[8733]=5;c[8734]=6;c[8735]=7;c[8736]=8;c[8753]=9;c[8754]=10;c[8755]=11;c[8756]=12;c[8737]=13;c[8738]=14;c[8739]=15;c[8740]=16;c[8757]=17;c[8758]=18;c[8759]=19;c[8760]=20;c[8745]=21;c[8746]=22;c[8747]=23;c[8748]=24;c[8741]=25;c[8742]=26;c[8743]=27;c[8744]=28;c[8749]=29;c[8750]=30;c[8751]=31;c[8752]=32;c[8761]=33;c[8762]=34;c[8763]=35;c[8764]=36;c[8709]=37;c[8710]=38;c[8711]=39;c[8712]=40;c[8713]=41;c[8714]=42;c[8715]=43;c[8716]=44;c[8717]=45;c[8718]=46;c[8719]=47;c[8720]=48;c[8721]=49;c[8722]=50;c[8723]=51;c[8724]=52;return}function Zf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=a+24|0;if(c[b>>2]|0){d=0;return d|0}e=Xb(1,1080)|0;if(!e){d=2;return d|0}c[b>>2]=e;b=c[a+16>>2]|0;c[e+4>>2]=b;c[e+196>>2]=16;c[e+344>>2]=0;f=a+20|0;a=c[f>>2]|0;if(!a){c[e+364>>2]=0;d=0;return d|0}else{c[e+364>>2]=(b&524288|0)!=0&(c[a>>2]|0)>>>0>1&1;b=e+184|0;c[b>>2]=c[a>>2];c[b+4>>2]=c[a+4>>2];c[b+8>>2]=c[a+8>>2];c[f>>2]=b;d=0;return d|0}return 0}function _f(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;b=a+368|0;d=c[b>>2]|0;if(!d)e=a+1056|0;else{f=a+372|0;if((c[f>>2]|0)>0){zb[c[(we()|0)+20>>2]&31](d);d=c[f>>2]|0;if((d|0)>1){g=1;do{h=(c[b>>2]|0)+(g*24|0)|0;zb[c[(we()|0)+20>>2]&31](h);g=g+1|0;h=c[f>>2]|0}while((g|0)<(h|0));i=h}else i=d;if((i|0)>0){i=0;do{d=c[(c[b>>2]|0)+(i*24|0)+12>>2]|0;Ce((c[d>>2]|0)+432|0);ah(c[d>>2]|0);Yb(c[d+32>>2]|0);pj(d+68|0)|0;Yb(d);i=i+1|0}while((i|0)<(c[f>>2]|0))}}e=a+1056|0}f=c[e>>2]|0;if(!f){j=c[b>>2]|0;Yb(j);k=c[e>>2]|0;Yb(k);Yb(a);return 0}Ae(f);Qe((c[e>>2]|0)+2440|0);j=c[b>>2]|0;Yb(j);k=c[e>>2]|0;Yb(k);Yb(a);return 0}function $f(a,b,c){a=a|0;b=b|0;c=c|0;return hg(a,b,c,0,0,0)|0}function ag(a,b){a=a|0;b=b|0;var d=0;d=a+196|0;c[b>>2]=c[d>>2];c[b+4>>2]=c[d+4>>2];c[b+8>>2]=c[d+8>>2];c[b+12>>2]=c[d+12>>2];c[b>>2]=16;return 0}function bg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;g=l;l=l+64|0;h=g;i=g+48|0;j=g+40|0;k=g+44|0;m=g+8|0;n=g+4|0;c[j>>2]=d;o=d;c[k>>2]=o;p=d+e|0;q=b+344|0;if((e|0)==0&(d|0)==0){c[q>>2]=1;r=0;l=g;return r|0}c[q>>2]=0;s=b+368|0;if(!(c[s>>2]|0)){t=we()|0;c[b+352>>2]=-1;c[b+376>>2]=0;c[b+380>>2]=0;c[b+384>>2]=0;c[b+1044>>2]=0;c[b+1040>>2]=0;c[b+1048>>2]=0;c[b+1052>>2]=1;u=b+364|0;if((c[u>>2]|0)==1)v=c[b+184>>2]|0;else v=1;w=b+372|0;x=(v|0)<8?v:8;c[w>>2]=x;c[b+388>>2]=x;c[q>>2]=0;q=Xb(1,2448)|0;x=b+1056|0;c[x>>2]=q;if(!q){r=2;l=g;return r|0}if(Aj(q,0)|0){c[b>>2]=29486;r=2;l=g;return r|0}q=Wb((c[w>>2]|0)*24|0)|0;c[s>>2]=q;if(!q){c[b>>2]=29523;r=2;l=g;return r|0}v=c[w>>2]|0;a:do if((v|0)>0){y=b+184|0;z=b+348|0;A=t+4|0;zb[c[t>>2]&31](q);B=Vb(32,124)|0;c[q+12>>2]=B;b:do if(B|0){C=q;D=q;E=B;F=0;while(1){G=$g(c[x>>2]|0)|0;c[E>>2]=G;if(!G){H=17;break}c[G+17872>>2]=D;c[E+24>>2]=F;c[E+32>>2]=0;c[E+36>>2]=0;c[E+116>>2]=0;c[E+28>>2]=0;if(Aj(E+40|0,0)|0){H=19;break}if(qj(E+68|0,0)|0){H=21;break}G=c[u>>2]|0;if(!G)I=c[y>>2]|0;else I=0;J=c[E>>2]|0;c[J+18720>>2]=I;c[J+18724>>2]=c[z>>2];c[J+17864>>2]=G;c[J+4528>>2]=G;c[C+(F*24|0)+8>>2]=22;F=F+1|0;if(!(Bb[c[A>>2]&7](D)|0)){H=25;break}G=c[w>>2]|0;if((F|0)>=(G|0)){K=G;break a}C=c[s>>2]|0;D=C+(F*24|0)|0;zb[c[t>>2]&31](D);E=Vb(32,124)|0;c[C+(F*24|0)+12>>2]=E;if(!E)break b}if((H|0)==17){c[b>>2]=29556;r=2;l=g;return r|0}else if((H|0)==19){c[b>>2]=29593;r=2;l=g;return r|0}else if((H|0)==21){c[b>>2]=29636;r=2;l=g;return r|0}else if((H|0)==25){c[b>>2]=29678;r=2;l=g;return r|0}}while(0);c[b>>2]=29556;r=2;l=g;return r|0}else K=v;while(0);if((c[b+212>>2]|0)==0?c[b+4>>2]&65536|0:0){c[b+216>>2]=3;c[b+220>>2]=4;c[b+224>>2]=0}if((K|0)>0){v=b+356|0;t=b+360|0;I=b+1064|0;u=b+1068|0;x=b+1060|0;q=K;K=0;while(1){A=c[c[(c[s>>2]|0)+(K*24|0)+12>>2]>>2]|0;z=c[A+17836>>2]|0;c[A+988>>2]=-1;c[A+17808>>2]=c[v>>2];c[A+17812>>2]=c[t>>2];y=c[I>>2]|0;if((y|0)!=0?(B=c[u>>2]|0,(B|0)!=0):0){c[z+32>>2]=y;c[z+36>>2]=B;L=c[x>>2]|0;M=q}else{c[z+32>>2]=5;c[z+36>>2]=23;B=z+2440|0;if(Pe(B)|0)Ub(A+432|0,2,29714,h);L=B;M=c[w>>2]|0}c[z+28>>2]=L;K=K+1|0;if((K|0)>=(M|0))break;else q=M}}}M=b+228|0;q=b+232|0;K=jh(d,e,m,n,c[M>>2]|0,c[q>>2]|0)|0;if(K|0){r=K;l=g;return r|0}if(c[b+1072>>2]|0){K=c[b+1076>>2]|0;L=c[n>>2]|0;w=K+1|0;if((K|0)<(L+-1|0)){c[n>>2]=w;N=w}else N=L}else N=c[n>>2]|0;L=(N|0)>0;if(c[b+364>>2]|0){if(!L){do if(!(c[b+388>>2]|0)){if((c[b+1048>>2]|0)<6){fg(b);break}c[b>>2]=29758;r=1;l=g;return r|0}while(0);r=gg(b,j,e,f)|0;l=g;return r|0}j=p;N=b+388|0;w=b+1048|0;K=o;h=d;x=c[k>>2]|0;u=0;while(1){c[i>>2]=K;I=c[m+(u<<2)>>2]|0;if(K>>>0<d>>>0|I>>>0>(j-K|0)>>>0){O=29786;P=7;H=52;break}if(!(c[N>>2]|0)){if((c[w>>2]|0)>=6){O=29758;P=1;H=52;break}fg(b)}Q=gg(b,i,I,f)|0;if(Q|0){H=53;break}h=h+I|0;u=u+1|0;if((u|0)>=(c[n>>2]|0)){H=80;break}else{K=h;x=h}}if((H|0)==52){c[k>>2]=x;c[b>>2]=O;R=P}else if((H|0)==53){c[k>>2]=x;R=Q}else if((H|0)==80){c[k>>2]=h;r=0;l=g;return r|0}r=R;l=g;return r|0}if(L){L=p;R=o;o=d;h=c[k>>2]|0;Q=0;while(1){c[i>>2]=R;x=c[m+(Q<<2)>>2]|0;if(R>>>0<d>>>0|x>>>0>(L-R|0)>>>0){H=64;break}S=gg(b,i,x,f)|0;if(S|0){H=67;break}o=o+x|0;Q=Q+1|0;if((Q|0)>=(c[n>>2]|0)){H=79;break}else{R=o;h=o}}if((H|0)==64){c[k>>2]=h;c[b>>2]=29786;T=7}else if((H|0)==67){c[k>>2]=h;T=S}else if((H|0)==79){c[k>>2]=o;r=0;l=g;return r|0}r=T;l=g;return r|0}T=p;if((e|0)>0)U=d;else{r=0;l=g;return r|0}while(1){d=gg(b,k,T-U|0,f)|0;if(d|0){r=d;H=81;break}d=c[k>>2]|0;do if(d>>>0<p>>>0){e=d;while(1){o=c[M>>2]|0;if(!o)V=a[e>>0]|0;else{Ib[o&63](c[q>>2]|0,e,i,1);V=a[i>>0]|0}if(V<<24>>24){H=69;break}W=e+1|0;if(W>>>0<p>>>0)e=W;else{H=70;break}}if((H|0)==69){H=0;c[k>>2]=e;X=e;break}else if((H|0)==70){H=0;c[k>>2]=W;X=W;break}}else X=d;while(0);if(X>>>0<p>>>0)U=X;else{r=0;H=81;break}}if((H|0)==81){l=g;return r|0}return 0}function cg(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;e=l;l=l+144|0;f=e+16|0;g=e;h=b+364|0;i=(c[h>>2]|0)==0;if((!i?(c[b+388>>2]|0)>0:0)?(c[b+344>>2]|0)==0:0){j=0;l=e;return j|0}k=b+1048|0;if((c[k>>2]|0)>0){m=c[b+1056>>2]|0;n=b+352|0;if(!i?(c[n>>2]|0)>-1:0){xe(m);i=c[n>>2]|0;if((((i|0)>-1?(o=m+40+(i*160|0)|0,p=c[o>>2]|0,(p|0)>0):0)?(q=p+-1|0,c[o>>2]=q,(q|0)==0):0)?c[m+40+(i*160|0)+24>>2]|0:0)Gb[c[m+36>>2]&31](c[m+28>>2]|0,m+40+(i*160|0)+16|0)|0;ye(m)}m=b+1044|0;i=c[m>>2]|0;c[n>>2]=c[b+392+(i*108|0)>>2];if(c[b+1052>>2]|0){j=0;l=e;return j|0}c[m>>2]=(i+1|0)%6|0;c[k>>2]=(c[k>>2]|0)+-1;j=b+392+(i*108|0)+4|0;l=e;return j|0}if(c[d>>2]|0){j=0;l=e;return j|0}d=b+368|0;if(!(c[d>>2]|0)){j=0;l=e;return j|0}i=b+384|0;k=b+372|0;m=b+4|0;n=b+388|0;q=b+1052|0;o=b+344|0;p=b+376|0;r=b+216|0;s=b+220|0;t=b+224|0;u=g+4|0;v=g+8|0;while(1){c[g>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;w=we()|0;x=c[d>>2]|0;y=c[i>>2]|0;z=c[x+(y*24|0)+12>>2]|0;c[i>>2]=(y+1|0)%(c[k>>2]|0)|0;if(c[m>>2]&65536|0){A=c[s>>2]|0;B=c[t>>2]|0;c[g>>2]=c[r>>2];c[u>>2]=A;c[v>>2]=B}B=z+28|0;if(!(Bb[c[w+8>>2]&7](x+(y*24|0)|0)|0)){c[B>>2]=0;c[n>>2]=(c[n>>2]|0)+1;c[q>>2]=1;if((c[o>>2]|0)!=1){C=0;break}}else{do if((c[B>>2]|0)==1){c[n>>2]=(c[n>>2]|0)+1;c[B>>2]=0;y=c[z>>2]|0;if((c[q>>2]|0)==1?(c[y+18728>>2]|0)==0:0){if((a[y+1012>>0]|0)==0?c[y+996>>2]|0:0){D=y;E=z;break}c[q>>2]=0;D=y;E=z}else{D=y;E=z}}else{D=c[z>>2]|0;E=z}while(0);if(!(ih(D,f,g)|0)){F=29;break}}if((c[i>>2]|0)==(c[p>>2]|0)){j=0;F=42;break}}if((F|0)==42){l=e;return j|0}if((F|0)==29){F=c[E>>2]|0;p=c[F+17836>>2]|0;i=c[b+1056>>2]|0;g=b+352|0;if((c[h>>2]|0)!=0?(c[g>>2]|0)>-1:0){xe(i);h=c[g>>2]|0;if((((h|0)>-1?(D=i+40+(h*160|0)|0,n=c[D>>2]|0,(n|0)>0):0)?(o=n+-1|0,c[D>>2]=o,(o|0)==0):0)?c[i+40+(h*160|0)+24>>2]|0:0)Gb[c[i+36>>2]&31](c[i+28>>2]|0,i+40+(h*160|0)+16|0)|0;ye(i);G=c[E>>2]|0}else G=F;c[g>>2]=c[G+988>>2];if(!(c[q>>2]|0)){q=b+236|0;G=c[z+16>>2]|0;z=c[f+88>>2]|0;g=(z|0)==0;E=c[f+84>>2]|0;i=(E|0)!=0;c[q>>2]=g?(i?261:262):i?258:263;c[b+240>>2]=c[f+96>>2];c[b+244>>2]=c[f+100>>2];c[b+256>>2]=8;h=c[f+16>>2]|0;c[b+248>>2]=h;c[b+252>>2]=(c[f+4>>2]|0)+327&-8;c[b+260>>2]=c[f+8>>2];c[b+264>>2]=c[f+12>>2];c[b+268>>2]=c[f+104>>2];c[b+272>>2]=c[f+108>>2];c[b+276>>2]=E;c[b+280>>2]=z;c[b+284>>2]=c[f+52>>2];c[b+288>>2]=c[f+56>>2];c[b+292>>2]=c[f+60>>2];c[b+296>>2]=0;c[b+300>>2]=h;z=c[f+36>>2]|0;c[b+304>>2]=z;c[b+308>>2]=z;c[b+312>>2]=h;c[b+316>>2]=g?(i?16:24):i?12:16;c[b+320>>2]=G;c[b+324>>2]=c[f+68>>2];c[b+328>>2]=0;c[b+332>>2]=0;c[b+336>>2]=c[p+40+((c[F+988>>2]|0)*160|0)+24>>2];C=q}else C=0}j=C;l=e;return j|0}function dg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((b|0)==0|(d|0)==0){f=8;return f|0}if(c[a+368>>2]|0){f=1;return f|0}c[a+1064>>2]=b;c[a+1068>>2]=d;c[a+1060>>2]=e;f=0;return f|0}function eg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0;b=l;l=l+16|0;d=b;e=a+4|0;c[d>>2]=c[e>>2];f=a+12|0;g=hh(c[a>>2]|0,c[f>>2]|0,d)|0;c[a+20>>2]=g;h=c[d>>2]|0;c[a+8>>2]=h;d=c[a>>2]|0;i=(g|0)!=0;j=h;do if(!(c[d+17864>>2]|0)){if(i){c[(c[d+17868>>2]|0)+140>>2]=1;c[d+18728>>2]=1}}else{if(!i?((c[e>>2]|0)+(c[f>>2]|0)+-1|0)>>>0<=j>>>0:0)break;h=c[d+17872>>2]|0;k=c[d+17836>>2]|0;Vg(h);c[a+116>>2]=1;xe(k);c[(c[(c[a>>2]|0)+17868>>2]|0)+140>>2]=1;ye(k);c[(c[a>>2]|0)+18728>>2]=1;Xg(h);Wg(h);m=0;l=b;return m|0}while(0);m=(g|0)==0&1;l=b;return m|0}function fg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0;d=l;l=l+144|0;e=d+16|0;f=d;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;g=we()|0;h=c[b+368>>2]|0;i=b+384|0;j=c[i>>2]|0;k=c[h+(j*24|0)+12>>2]|0;c[i>>2]=(j+1|0)%(c[b+372>>2]|0)|0;Bb[c[g+8>>2]&7](h+(j*24|0)|0)|0;c[k+28>>2]=0;j=b+388|0;c[j>>2]=(c[j>>2]|0)+1;j=c[k>>2]|0;h=b+1052|0;do if((c[h>>2]|0)==1?(c[j+18728>>2]|0)==0:0){if((a[j+1012>>0]|0)==0?c[j+996>>2]|0:0)break;c[h>>2]=0}while(0);if(ih(j,e,f)|0){l=d;return}f=c[k>>2]|0;j=c[f+17836>>2]|0;h=f+988|0;f=b+1040|0;c[b+392+((c[f>>2]|0)*108|0)>>2]=c[h>>2];g=c[f>>2]|0;i=c[k+16>>2]|0;k=c[e+88>>2]|0;m=(k|0)==0;n=c[e+84>>2]|0;o=(n|0)!=0;c[b+392+(g*108|0)+4>>2]=m?(o?261:262):o?258:263;c[b+392+(g*108|0)+8>>2]=c[e+96>>2];c[b+392+(g*108|0)+12>>2]=c[e+100>>2];c[b+392+(g*108|0)+24>>2]=8;p=c[e+16>>2]|0;c[b+392+(g*108|0)+16>>2]=p;c[b+392+(g*108|0)+20>>2]=(c[e+4>>2]|0)+327&-8;c[b+392+(g*108|0)+28>>2]=c[e+8>>2];c[b+392+(g*108|0)+32>>2]=c[e+12>>2];c[b+392+(g*108|0)+36>>2]=c[e+104>>2];c[b+392+(g*108|0)+40>>2]=c[e+108>>2];c[b+392+(g*108|0)+44>>2]=n;c[b+392+(g*108|0)+48>>2]=k;c[b+392+(g*108|0)+52>>2]=c[e+52>>2];c[b+392+(g*108|0)+56>>2]=c[e+56>>2];c[b+392+(g*108|0)+60>>2]=c[e+60>>2];c[b+392+(g*108|0)+64>>2]=0;c[b+392+(g*108|0)+68>>2]=p;k=c[e+36>>2]|0;c[b+392+(g*108|0)+72>>2]=k;c[b+392+(g*108|0)+76>>2]=k;c[b+392+(g*108|0)+80>>2]=p;c[b+392+(g*108|0)+84>>2]=m?(o?16:24):o?12:16;c[b+392+(g*108|0)+88>>2]=i;c[b+392+(g*108|0)+92>>2]=c[e+68>>2];c[b+392+(g*108|0)+96>>2]=0;c[b+392+(g*108|0)+100>>2]=0;c[b+392+((c[f>>2]|0)*108|0)+104>>2]=c[j+40+((c[h>>2]|0)*160|0)+24>>2];c[f>>2]=((c[f>>2]|0)+1|0)%6|0;f=b+1048|0;c[f>>2]=(c[f>>2]|0)+1;l=d;return}function gg(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;g=l;l=l+16|0;h=g;i=we()|0;do if(!(c[b+204>>2]|0)){c[h>>2]=0;j=hg(c[d>>2]|0,e,b+196|0,h,c[b+228>>2]|0,c[b+232>>2]|0)|0;if(!j){if(!(c[h>>2]|c[b+208>>2]))k=1;else break;l=g;return k|0}else{k=j;l=g;return k|0}}while(0);h=c[b+368>>2]|0;if(c[b+364>>2]|0){j=b+376|0;m=c[j>>2]|0;n=h+(m*24|0)|0;o=c[h+(m*24|0)+12>>2]|0;p=b+380|0;q=c[p>>2]|0;if((m|0)!=(q|0))_g(n,h+(q*24|0)|0);c[(c[o>>2]|0)+17856>>2]=0;q=o+36|0;r=o+32|0;s=c[r>>2]|0;do if((c[q>>2]|0)>>>0<e>>>0){Yb(s);t=Wb(e)|0;c[r>>2]=t;if(t|0){c[q>>2]=e;u=t;break}c[b>>2]=29814;k=2;l=g;return k|0}else u=s;while(0);c[o+12>>2]=e;Qj(u|0,c[d>>2]|0,e|0)|0;c[o+120>>2]=0;c[o+116>>2]=0;c[o+28>>2]=1;c[o+4>>2]=c[r>>2];c[o+16>>2]=f;o=c[j>>2]|0;r=c[p>>2]|0;u=c[b+372>>2]|0;if((o|0)!=(r|0))c[p>>2]=(r+1|0)%(u|0)|0;c[j>>2]=(o+1|0)%(u|0)|0;u=b+388|0;c[u>>2]=(c[u>>2]|0)+-1;c[h+(m*24|0)+20>>2]=0;zb[c[i+12>>2]&31](n);k=0;l=g;return k|0}n=c[h+12>>2]|0;c[n+4>>2]=c[d>>2];c[n+12>>2]=e;c[n+16>>2]=f;c[n+28>>2]=1;f=c[n>>2]|0;c[f+18712>>2]=c[b+228>>2];c[f+18716>>2]=c[b+232>>2];f=h+20|0;c[f>>2]=0;zb[c[i+16>>2]&31](h);c[d>>2]=c[n+8>>2];d=c[n>>2]|0;if(c[f>>2]|0){f=c[d+432>>2]|0;if(!f){k=0;l=g;return k|0}c[b>>2]=c[d+436>>2]|0?d+440|0:0;k=f;l=g;return k|0}f=b+1052|0;if((c[f>>2]|0)!=1){k=0;l=g;return k|0}if(c[d+18728>>2]|0){k=0;l=g;return k|0}if((a[d+1012>>0]|0)==0?c[d+996>>2]|0:0){k=0;l=g;return k|0}c[f>>2]=0;k=0;l=g;return k|0}function hg(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;h=l;l=l+32|0;i=h+20|0;j=h;if((b|0)<1){k=8;l=h;return k|0}m=d+12|0;c[m>>2]=0;n=d+8|0;c[n>>2]=0;o=d+4|0;c[o>>2]=0;d=b>>>0<10?b:10;if(!f){p=a;q=b}else{Ib[f&63](g,a,i,d);p=i;q=d}c[j>>2]=p;c[j+4>>2]=p+q;p=j+8|0;c[p>>2]=0;c[j+12>>2]=0;c[j+16>>2]=0;d=kc(j,2)|0;i=Gg(j)|0;a:do if(!((d|0)!=2|i>>>0>3)){if(jc(j)|0){if(q>>>0<2&i>>>0>2){r=5;break}kc(j,3)|0;r=0;break}if(q>>>0>=10){c[m>>2]=(jc(j)|0)==0&1;a=jc(j)|0;g=jc(j)|0;do if(!(c[m>>2]|0)){if(a|0){c[p>>2]=(c[p>>2]|0)+(g|0?0:2);s=0;break}f=jc(j)|0;c[p>>2]=(c[p>>2]|0)+(g|0?0:2);if(!f)s=0;else{if(!(Eg(j)|0)){r=5;break a}switch(i|0){case 0:{t=c[p>>2]|0;break}case 1:{u=27;break}default:{c[p>>2]=(c[p>>2]|0)+1;u=27}}do if((u|0)==27){b=(i|2|0)==3;if((kc(j,3)|0)==7){if(!b){r=5;break a}v=c[p>>2]|0}else{w=c[p>>2]|0;x=w+1|0;c[p>>2]=x;if(!b){t=x;break}x=w+3|0;c[p>>2]=x;v=x}x=v+1|0;c[p>>2]=x;t=x}while(0);c[p>>2]=t+8;Fg(j,o,n);s=f}}else{if(!(Eg(j)|0)){r=5;break a}if(i>>>0>1)c[p>>2]=(c[p>>2]|0)+1;x=(i|2|0)==3;if((kc(j,3)|0)!=7){w=c[p>>2]|0;c[p>>2]=w+1;if(x){b=w+3|0;c[p>>2]=b;y=b;u=18}}else{if(!x){r=5;break a}y=c[p>>2]|0;u=18}if((u|0)==18)c[p>>2]=y+1;Fg(j,o,n);s=0}while(0);if(!e){k=0;l=h;return k|0}c[e>>2]=s;k=0;l=h;return k|0}else r=5}else r=5;while(0);k=r;l=h;return k|0}function ig(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=l;l=l+128|0;e=d;f=(c[b>>2]|0)+(4-1)&~(4-1);g=c[f>>2]|0;c[b>>2]=f+4;if(c[a+364>>2]|0){c[a>>2]=29850;h=4;l=d;return h|0}if(!g){h=8;l=d;return h|0}f=c[(c[a+368>>2]|0)+12>>2]|0;c[e+52>>2]=c[g+52>>2];c[e+56>>2]=c[g+56>>2];c[e+60>>2]=c[g+60>>2];a=c[g+28>>2]|0;c[e+8>>2]=a;b=c[g+32>>2]|0;c[e+12>>2]=b;c[e+104>>2]=c[g+36>>2];c[e+108>>2]=c[g+40>>2];c[e>>2]=a;c[e+4>>2]=b;i=c[g+44>>2]|0;j=(i|0)==1?(a+1|0)/2|0:a;c[e+20>>2]=j;a=c[g+48>>2]|0;k=(a|0)==1?(b+1|0)/2|0:b;c[e+24>>2]=k;c[e+28>>2]=j;c[e+32>>2]=k;k=c[g+68>>2]|0;c[e+16>>2]=k;c[e+36>>2]=c[g+72>>2];c[e+96>>2]=c[g+8>>2];c[e+100>>2]=c[g+12>>2];c[e+76>>2]=(k-(c[g+16>>2]|0)|0)>>>1;c[e+84>>2]=i;c[e+88>>2]=a;h=fh(c[f>>2]|0,c[g>>2]|0,e)|0;l=d;return h|0}function jg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0;d=l;l=l+128|0;e=d;f=(c[b>>2]|0)+(4-1)&~(4-1);g=c[f>>2]|0;c[b>>2]=f+4;if(c[a+364>>2]|0){c[a>>2]=29850;h=4;l=d;return h|0}if(!g){h=8;l=d;return h|0}f=c[(c[a+368>>2]|0)+12>>2]|0;c[e+52>>2]=c[g+52>>2];c[e+56>>2]=c[g+56>>2];c[e+60>>2]=c[g+60>>2];a=c[g+28>>2]|0;c[e+8>>2]=a;b=c[g+32>>2]|0;c[e+12>>2]=b;c[e+104>>2]=c[g+36>>2];c[e+108>>2]=c[g+40>>2];c[e>>2]=a;c[e+4>>2]=b;i=c[g+44>>2]|0;j=(i|0)==1?(a+1|0)/2|0:a;c[e+20>>2]=j;a=c[g+48>>2]|0;k=(a|0)==1?(b+1|0)/2|0:b;c[e+24>>2]=k;c[e+28>>2]=j;c[e+32>>2]=k;k=c[g+68>>2]|0;c[e+16>>2]=k;c[e+36>>2]=c[g+72>>2];c[e+96>>2]=c[g+8>>2];c[e+100>>2]=c[g+12>>2];c[e+76>>2]=(k-(c[g+16>>2]|0)|0)>>>1;c[e+84>>2]=i;c[e+88>>2]=a;a=(c[f>>2]|0)+432|0;f=c[g>>2]|0;switch(f|0){case 4:case 2:case 1:{m=f;break}default:m=1}h=gh(a,m,e)|0;l=d;return h|0}function kg(a,b){a=a|0;b=b|0;return 4}function lg(a,b){a=a|0;b=b|0;var d=0,e=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;c[a+348>>2]=e;return 0}function mg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;if(!e){c[a+228>>2]=0;f=0;g=a+232|0;c[g>>2]=f;return 0}else{c[a+228>>2]=c[e>>2];f=c[e+4>>2]|0;g=a+232|0;c[g>>2]=f;return 0}return 0}function ng(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;if(e|0){if((e+-32|0)>>>0>992){f=8;return f|0}if(e+-1&e|0){f=8;return f|0}}c[a+356>>2]=e;d=c[a+368>>2]|0;if(!d){f=0;return f|0}c[(c[c[d+12>>2]>>2]|0)+17808>>2]=e;f=0;return f|0}function og(a,b){a=a|0;b=b|0;var d=0,e=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;c[a+360>>2]=e;d=c[a+368>>2]|0;if(!d)return 0;c[(c[c[d+12>>2]>>2]|0)+17812>>2]=e;return 0}function pg(a,b){a=a|0;b=b|0;var d=0,e=0;c[a+1072>>2]=1;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;c[a+1076>>2]=e;return e>>31&8|0}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;if(c[a+364>>2]|0){c[a>>2]=29850;f=4;return f|0}if(!e){f=8;return f|0}d=c[a+368>>2]|0;if(!d){f=1;return f|0}c[e>>2]=c[(c[c[d+12>>2]>>2]|0)+17860>>2];f=0;return f|0}function rg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;if(!e){f=8;return f|0}d=c[a+368>>2]|0;if(!d){f=1;return f|0}b=c[c[d+12>>2]>>2]|0;if(!(c[b+720>>2]|0)){f=1;return f|0}d=c[a+352>>2]|0;if((d|0)<=-1){f=0;return f|0}c[e>>2]=c[(c[b+17836>>2]|0)+40+(d*160|0)+140>>2];f=0;return f|0}function sg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;if(c[a+364>>2]|0){c[a>>2]=29850;f=4;return f|0}if(!e){f=8;return f|0}d=c[c[(c[a+368>>2]|0)+12>>2]>>2]|0;a=c[e>>2]|0;if(a>>>0>7){f=1;return f|0}b=c[d+732+(a<<2)>>2]|0;if((b|0)<0){f=1;return f|0}a=c[d+17836>>2]|0;d=c[a+40+(b*160|0)+116>>2]|0;g=(d|0)==0;h=c[a+40+(b*160|0)+112>>2]|0;i=(h|0)!=0;c[e+4>>2]=g?(i?261:262):i?258:263;c[e+8>>2]=c[a+40+(b*160|0)+124>>2];c[e+12>>2]=c[a+40+(b*160|0)+128>>2];c[e+24>>2]=8;j=a+40+(b*160|0)+44|0;k=c[j>>2]|0;c[e+16>>2]=k;c[e+20>>2]=(c[a+40+(b*160|0)+32>>2]|0)+327&-8;c[e+28>>2]=c[a+40+(b*160|0)+36>>2];c[e+32>>2]=c[a+40+(b*160|0)+40>>2];c[e+36>>2]=c[a+40+(b*160|0)+132>>2];c[e+40>>2]=c[a+40+(b*160|0)+136>>2];c[e+44>>2]=h;c[e+48>>2]=d;c[e+52>>2]=c[a+40+(b*160|0)+80>>2];c[e+56>>2]=c[a+40+(b*160|0)+84>>2];c[e+60>>2]=c[a+40+(b*160|0)+88>>2];c[e+64>>2]=0;c[e+68>>2]=k;k=a+40+(b*160|0)+64|0;c[e+72>>2]=c[k>>2];c[e+76>>2]=c[k>>2];c[e+80>>2]=c[j>>2];c[e+84>>2]=g?(i?16:24):i?12:16;c[e+88>>2]=0;c[e+92>>2]=c[a+40+(b*160|0)+96>>2];c[e+96>>2]=0;c[e+100>>2]=0;f=0;return f|0}function tg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;if(c[a+364>>2]|0){c[a>>2]=29850;f=4;return f|0}if(!e){f=8;return f|0}d=c[a+368>>2]|0;if(!d){f=1;return f|0}a=c[c[d+12>>2]>>2]|0;c[e>>2]=c[a+696>>2];c[e+4>>2]=c[a+700>>2];f=0;return f|0}function ug(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;d=c[a+368>>2]|0;b=c[a+384>>2]|0;if(!e){f=8;return f|0}if(!(d+(b*24|0)|0)){f=1;return f|0}c[e>>2]=c[(c[c[d+(b*24|0)+12>>2]>>2]|0)+17784>>2];f=0;return f|0}function vg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=(c[b>>2]|0)+(4-1)&~(4-1);e=c[d>>2]|0;c[b>>2]=d+4;if(c[a+364>>2]|0){c[a>>2]=29850;f=4;return f|0}if(!e){f=8;return f|0}d=c[a+368>>2]|0;if(!d){f=1;return f|0}a=c[c[d+12>>2]>>2]|0;c[e>>2]=c[a+688>>2];c[e+4>>2]=c[a+692>>2];f=0;return f|0}function wg(){return 20052}function xg(e,f,g,h,i,j){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,T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=(A|0)==0;if(!B)if((i|0)>0&(j|0)>0){C=2147483647;D=0;while(1){E=(S(D,x)|0)+v|0;F=C;G=0;do{H=d[A+(E+G)>>0]|0;F=(F|0)<(H|0)?F:H;G=G+1|0}while((G|0)!=(i|0));D=D+1|0;if((D|0)==(j|0)){I=F;break}else C=F}}else I=2147483647;else I=0;if(!(a[f+4413>>0]|0)){C=c[f+1204>>2]|0;if(!((i|0)>0&(j|0)>0)){J=I;break}if(B){D=0;while(1){G=0;do{a[C+(G+v+(S(c[w>>2]|0,D)|0))>>0]=0;G=G+1|0}while((G|0)!=(i|0));D=D+1|0;if((D|0)==(j|0)){J=I;break a}}}else{D=0;while(1){B=0;do{G=B+v+(S(c[w>>2]|0,D)|0)|0;a[C+G>>0]=a[A+G>>0]|0;B=B+1|0}while((B|0)!=(i|0));D=D+1|0;if((D|0)==(j|0)){J=I;break a}}}}if(a[f+4416>>0]|0){D=c[e+13576>>2]|0;A=c[e+13580>>2]|0;if(!A)K=0;else K=a[A+5>>0]|0;if(!D)L=0;else L=a[D+5>>0]|0;D=d[L+K+(f+4424)>>0]|0;A=e+16|0;C=(256-D+(S(c[A>>2]|0,D)|0)|0)>>>8;D=e+20|0;B=c[D>>2]|0;if((B|0)<0){gc(q);M=c[D>>2]|0}else M=B;B=c[q>>2]|0;G=C<<24;if(B>>>0<G>>>0){N=0;O=C;P=B}else{N=1;O=(c[A>>2]|0)-C|0;P=B-G|0}G=d[1280+O>>0]|0;B=O<<G;C=M-G|0;c[q>>2]=P<<G;c[D>>2]=C;c[A>>2]=B;a[u+5>>0]=N;if(!N){Q=B;R=C;T=D;U=A;V=q;W=100}else X=I}else{A=e+16|0;D=e+20|0;Q=c[A>>2]|0;R=c[D>>2]|0;T=D;U=A;V=q;W=100}if((W|0)==100){A=Q;D=R;C=0;do{B=C<<24>>24;G=d[(B>>1)+(f+4417)>>0]|0;F=(256-G+(S(G,A)|0)|0)>>>8;if((D|0)<0){gc(q);Y=c[T>>2]|0}else Y=D;G=c[V>>2]|0;E=F<<24;if(G>>>0<E>>>0){Z=0;_=F;$=G}else{Z=1;_=(c[U>>2]|0)-F|0;$=G-E|0}E=d[1280+_>>0]|0;A=_<<E;D=Y-E|0;c[V>>2]=$<<E;c[T>>2]=D;c[U>>2]=A;C=a[28812+(Z+B)>>0]|0}while(C<<24>>24>0);X=0-(C<<24>>24)|0}if((j|0)>0?(A=X&255,D=f+1204|0,(i|0)>0):0){B=0;do{E=0;do{a[(c[D>>2]|0)+(E+v+(S(c[w>>2]|0,B)|0))>>0]=A;E=E+1|0}while((E|0)!=(i|0));B=B+1|0}while((B|0)!=(j|0));J=X}else J=X}else J=0;while(0);X=u+4|0;a[X>>0]=J;v=u+3|0;a[v>>0]=yg(s,r,J<<24>>24,q)|0;J=a[X>>0]|0;if((a[y>>0]|0)!=0?(c[f+4492+(J<<2)>>2]&4|0)!=0:0)aa=(b[f+4428+(J<<3)+4>>1]|0)!=0&1;else{J=c[e+13576>>2]|0;Z=c[e+13580>>2]|0;U=(Z|0)!=0;T=(J|0)!=0;if(!(T&U))if(T|U)ba=((a[(U?Z:J)+8>>0]|0)<1&1)<<1;else ba=0;else{U=(a[Z+8>>0]|0)>0;Z=(a[J+8>>0]|0)>0;ba=U|Z?(U&Z^1)&1:3}Z=d[(c[f+4540>>2]|0)+1931+ba>>0]|0;U=e+16|0;J=(256-Z+(S(c[U>>2]|0,Z)|0)|0)>>>8;Z=e+20|0;T=c[Z>>2]|0;if((T|0)<0){gc(q);ca=c[Z>>2]|0}else ca=T;T=c[q>>2]|0;$=J<<24;if(T>>>0<$>>>0){da=0;ea=J;fa=T}else{da=1;ea=(c[U>>2]|0)-J|0;fa=T-$|0}$=d[1280+ea>>0]|0;c[q>>2]=fa<<$;c[Z>>2]=ca-$;c[U>>2]=ea<<$;$=c[e+13548>>2]|0;ea=$+12496+(ba<<3)+(da<<2)|0;if(!$)aa=da;else{c[ea>>2]=(c[ea>>2]|0)+1;aa=da}}da=(aa|0)==0;a[u+2>>0]=zg(s,r,(da|(a[v>>0]|0)==0)&1,q)|0;v=a[u>>0]|0;if(da){switch(v<<24>>24){case 0:{da=f+4540|0;aa=e+16|0;ea=e+20|0;$=e+13548|0;ba=0;do{U=c[da>>2]|0;ca=c[aa>>2]|0;Z=c[ea>>2]|0;fa=0;do{T=fa<<24>>24;J=d[U+(T>>1)>>0]|0;V=(256-J+(S(J,ca)|0)|0)>>>8;if((Z|0)<0){gc(q);ga=c[ea>>2]|0}else ga=Z;J=c[q>>2]|0;Y=V<<24;if(J>>>0<Y>>>0){ha=0;ia=V;ja=J}else{ha=1;ia=(c[aa>>2]|0)-V|0;ja=J-Y|0}Y=d[1280+ia>>0]|0;ca=ia<<Y;Z=ga-Y|0;c[q>>2]=ja<<Y;c[ea>>2]=Z;c[aa>>2]=ca;fa=a[27420+(ha+T)>>0]|0}while(fa<<24>>24>0);ca=0-(fa&255)|0;Z=c[$>>2]|0;U=Z+((ca&255)<<2)|0;if(Z|0)c[U>>2]=(c[U>>2]|0)+1;a[u+20+(ba*12|0)>>0]=ca;ba=ba+1|0}while((ba|0)!=4);ba=a[u+56>>0]|0;a[u+1>>0]=ba;ka=ba;la=da;ma=ea;na=aa;oa=q;break}case 1:{aa=f+4540|0;ea=c[aa>>2]|0;da=e+16|0;ba=e+20|0;$=c[da>>2]|0;ha=c[ba>>2]|0;ja=0;do{ga=ja<<24>>24;ia=d[ea+(ga>>1)>>0]|0;ca=(256-ia+(S(ia,$)|0)|0)>>>8;if((ha|0)<0){gc(q);pa=c[ba>>2]|0}else pa=ha;ia=c[q>>2]|0;U=ca<<24;if(ia>>>0<U>>>0){qa=0;ra=ca;sa=ia}else{qa=1;ra=(c[da>>2]|0)-ca|0;sa=ia-U|0}U=d[1280+ra>>0]|0;$=ra<<U;ha=pa-U|0;c[q>>2]=sa<<U;c[ba>>2]=ha;c[da>>2]=$;ja=a[27420+(qa+ga)>>0]|0}while(ja<<24>>24>0);qa=0-(ja&255)|0;ja=qa&255;sa=e+13548|0;pa=c[sa>>2]|0;ra=pa+((qa&255)<<2)|0;if(!pa){ta=$;ua=ha}else{c[ra>>2]=(c[ra>>2]|0)+1;ta=c[da>>2]|0;ua=c[ba>>2]|0}a[u+44>>0]=ja;a[u+20>>0]=ja;ja=c[aa>>2]|0;ra=ta;ta=ua;ua=0;do{ha=ua<<24>>24;$=d[ja+(ha>>1)>>0]|0;pa=(256-$+(S($,ra)|0)|0)>>>8;if((ta|0)<0){gc(q);va=c[ba>>2]|0}else va=ta;$=c[q>>2]|0;qa=pa<<24;if($>>>0<qa>>>0){wa=0;xa=pa;ya=$}else{wa=1;xa=(c[da>>2]|0)-pa|0;ya=$-qa|0}qa=d[1280+xa>>0]|0;ra=xa<<qa;ta=va-qa|0;c[q>>2]=ya<<qa;c[ba>>2]=ta;c[da>>2]=ra;ua=a[27420+(wa+ha)>>0]|0}while(ua<<24>>24>0);wa=0-(ua&255)|0;ua=wa&255;ra=c[sa>>2]|0;sa=ra+((wa&255)<<2)|0;if(ra|0)c[sa>>2]=(c[sa>>2]|0)+1;a[u+1>>0]=ua;a[u+56>>0]=ua;a[u+32>>0]=ua;ka=ua;la=aa;ma=ba;na=da;oa=q;break}case 2:{da=f+4540|0;ba=c[da>>2]|0;aa=e+16|0;ua=e+20|0;sa=c[aa>>2]|0;ra=c[ua>>2]|0;wa=0;do{ta=wa<<24>>24;ya=d[ba+(ta>>1)>>0]|0;va=(256-ya+(S(ya,sa)|0)|0)>>>8;if((ra|0)<0){gc(q);za=c[ua>>2]|0}else za=ra;ya=c[q>>2]|0;xa=va<<24;if(ya>>>0<xa>>>0){Aa=0;Ba=va;Ca=ya}else{Aa=1;Ba=(c[aa>>2]|0)-va|0;Ca=ya-xa|0}xa=d[1280+Ba>>0]|0;sa=Ba<<xa;ra=za-xa|0;c[q>>2]=Ca<<xa;c[ua>>2]=ra;c[aa>>2]=sa;wa=a[27420+(Aa+ta)>>0]|0}while(wa<<24>>24>0);Aa=0-(wa&255)|0;wa=Aa&255;Ca=e+13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)+1>>0]<<2)>>2]|0;else jb=0;ib=c[20248+(ka<<6)+8>>2]|0;hb=ib+g|0;if(((hb|0)>=0?(ma=c[20248+(ka<<6)+12>>2]|0,ka=ma+h|0,(hb|0)<(c[eb>>2]|0)?(ka|0)>=(c[na>>2]|0):0):0)?(ka|0)<(c[gb>>2]|0):0)kb=(c[21080+(d[(c[(c[t>>2]|0)+((S(c[oa>>2]|0,ib)|0)+ma<<2)>>2]|0)+1>>0]<<2)>>2]|0)+jb|0;else kb=jb;jb=c[21136+(kb<<2)>>2]|0;if((a[y>>0]|0)!=0?(c[f+4492+(a[X>>0]<<2)>>2]&8|0)!=0:0){a[u+1>>0]=12;if((v&255)<3)Ub(c[e+13708>>2]|0,5,29889,m);else W=204}else W=172;c:do if((W|0)==172){if((v&255)>2){m=jb&255;X=c[Ca>>2]|0;y=e+16|0;kb=e+20|0;ma=c[y>>2]|0;ib=c[kb>>2]|0;oa=0;do{gb=oa<<24>>24;ka=d[(gb>>1)+(X+1910+(m*3|0))>>0]|0;na=(256-ka+(S(ka,ma)|0)|0)>>>8;if((ib|0)<0){gc(q);lb=c[kb>>2]|0}else lb=ib;ka=c[q>>2]|0;eb=na<<24;if(ka>>>0<eb>>>0){mb=0;nb=na;ob=ka}else{mb=1;nb=(c[y>>2]|0)-na|0;ob=ka-eb|0}eb=d[1280+nb>>0]|0;ma=nb<<eb;ib=lb-eb|0;c[q>>2]=ob<<eb;c[kb>>2]=ib;c[y>>2]=ma;oa=a[27438+(mb+gb)>>0]|0}while(oa<<24>>24>0);ma=oa<<24>>24;y=c[Qa>>2]|0;ib=y+12384+(m<<4)+(0-ma<<2)|0;if(y|0)c[ib>>2]=(c[ib>>2]|0)+1;ib=10-ma&255;ma=u+1|0;a[ma>>0]=ib;if(ib<<24>>24==12){W=204;break}else{pb=ib;qb=ma}}else{ma=u+1|0;a[ma>>0]=10;pb=10;qb=ma}ma=n+-4|0;ib=Ra?2:1;if(!Oa){y=pb;kb=0;while(1){X=Bg(s,r,y,a[u+8+kb>>0]|0,ua,n,g,h,-1,0,7,f)|0;if((X|0)>0){fa=0;do{gb=n+(fa<<2)|0;eb=b[gb>>1]|0;ka=eb<<16>>16;if(ka&1|0)b[gb>>1]=(eb<<16>>16>0?65535:1)+ka;ka=gb+2|0;gb=b[ka>>1]|0;eb=gb<<16>>16;if(eb&1|0)b[ka>>1]=(gb<<16>>16>0?65535:1)+eb;fa=fa+1|0}while((fa|0)!=(X|0));c[o+(kb<<2)>>2]=c[ma+(X<<2)>>2]}fa=kb+1|0;if((fa|0)==(ib|0)){W=204;break c}y=a[qb>>0]|0;kb=fa}}else{rb=pb;sb=0}while(1){kb=Bg(s,r,rb,a[u+8+sb>>0]|0,ua,n,g,h,-1,0,7,f)|0;if((kb|0)>0){y=0;do{m=n+(y<<2)|0;oa=b[m>>1]|0;fa=oa<<16>>16;if(!(((oa<<16>>16>-1?fa:0-fa|0)|0)<64?(eb=b[m+2>>1]|0,gb=eb<<16>>16,((eb<<16>>16>-1?gb:0-gb|0)|0)<64):0))W=196;do if((W|0)==196){W=0;if(fa&1|0)b[m>>1]=(oa<<16>>16>0?65535:1)+fa;gb=m+2|0;eb=b[gb>>1]|0;ka=eb<<16>>16;if(!(ka&1))break;b[gb>>1]=(eb<<16>>16>0?65535:1)+ka}while(0);y=y+1|0}while((y|0)!=(kb|0));c[o+(sb<<2)>>2]=c[ma+(kb<<2)>>2]}y=sb+1|0;if((y|0)==(ib|0)){W=204;break c}rb=a[qb>>0]|0;sb=y}}while(0);do if((W|0)==204){sb=a[f+1212>>0]|0;if(sb<<24>>24==4){qb=c[e+13576>>2]|0;if(!qb)tb=3;else tb=d[qb+7>>0]|0;qb=c[e+13580>>2]|0;if(!qb)ub=3;else ub=d[qb+7>>0]|0;qb=(tb|0)==(ub|0)?tb:(tb|0)==3?ub:(ub|0)==3?tb:3;rb=c[Ca>>2]|0;pb=e+16|0;mb=e+20|0;ob=c[pb>>2]|0;lb=c[mb>>2]|0;nb=0;do{ib=nb<<24>>24;ma=d[(ib>>1)+(rb+1902+(qb<<1))>>0]|0;y=(256-ma+(S(ma,ob)|0)|0)>>>8;if((lb|0)<0){gc(q);vb=c[mb>>2]|0}else vb=lb;ma=c[q>>2]|0;X=y<<24;if(ma>>>0<X>>>0){wb=0;xb=y;yb=ma}else{wb=1;xb=(c[pb>>2]|0)-y|0;yb=ma-X|0}X=d[1280+xb>>0]|0;ob=xb<<X;lb=vb-X|0;c[q>>2]=yb<<X;c[mb>>2]=lb;c[pb>>2]=ob;nb=a[27450+(wb+ib)>>0]|0}while(nb<<24>>24>0);ob=0-(nb<<24>>24)|0;pb=ob&255;lb=c[Qa>>2]|0;mb=lb+12336+(qb*12|0)+((ob&255)<<2)|0;if(!lb)zb=pb;else{c[mb>>2]=(c[mb>>2]|0)+1;zb=pb}}else zb=sb;a[u+7>>0]=zb;if((v&255)>=3){pb=(Cg(s,r,a[u+1>>0]|0,u+12|0,o,o,Sa,Oa,q)|0)==0&1;mb=e+13704|0;c[mb>>2]=pb|c[mb>>2];break}mb=a[e+13544>>0]|0;pb=1<<(mb&255);lb=a[e+13545>>0]|0;ob=1<<(lb&255);c[p+4>>2]=-2147450880;rb=jb&255;ib=e+16|0;X=e+20|0;ma=n+4|0;y=lb<<24>>24==1;lb=mb<<24>>24==1;mb=e+13704|0;m=Ra?2:1;fa=0;do{oa=fa<<1;ka=0;do{eb=c[Ca>>2]|0;gb=c[ib>>2]|0;na=c[X>>2]|0;hb=0;do{fb=hb<<24>>24;bb=d[(fb>>1)+(eb+1910+(rb*3|0))>>0]|0;cb=(256-bb+(S(bb,gb)|0)|0)>>>8;if((na|0)<0){gc(q);Ab=c[X>>2]|0}else Ab=na;bb=c[q>>2]|0;ab=cb<<24;if(bb>>>0<ab>>>0){Bb=0;Cb=cb;Db=bb}else{Bb=1;Cb=(c[ib>>2]|0)-cb|0;Db=bb-ab|0}ab=d[1280+Cb>>0]|0;gb=Cb<<ab;na=Ab-ab|0;c[q>>2]=Db<<ab;c[X>>2]=na;c[ib>>2]=gb;hb=a[27438+(Bb+fb)>>0]|0}while(hb<<24>>24>0);gb=ka+oa|0;na=hb<<24>>24;eb=c[Qa>>2]|0;fb=eb+12384+(rb<<4)+(0-na<<2)|0;if(eb|0)c[fb>>2]=(c[fb>>2]|0)+1;Eb=10-na&255;d:do if((Eb&-2)<<24>>24==10){na=Eb<<24>>24==10;switch(gb|0){case 0:{fb=0;do{c[p+(fb<<2)>>2]=c[n+((Bg(s,r,Eb,a[(c[c[t>>2]>>2]|0)+8+fb>>0]|0,ua,n,g,h,0,1,0,0)|0)+-1<<2)>>2];fb=fb+1|0}while((fb|0)!=(m|0));break}case 3:{if(na){fb=0;while(1){eb=c[c[t>>2]>>2]|0;Bg(s,r,10,a[eb+8+fb>>0]|0,ua,n,g,h,3,1,0,0)|0;c[p+(fb<<2)>>2]=c[eb+48+(fb<<2)>>2];fb=fb+1|0;if((fb|0)==(m|0))break d}}else Fb=0;do{fb=c[c[t>>2]>>2]|0;Bg(s,r,Eb,a[fb+8+Fb>>0]|0,ua,n,g,h,3,1,0,0)|0;eb=c[fb+36+(Fb<<2)>>2]|0;ab=c[fb+24+(Fb<<2)>>2]|0;bb=c[n>>2]|0;cb=c[ma>>2]|0;db=p+(Fb<<2)|0;c[db>>2]=0;do if((c[fb+48+(Fb<<2)>>2]|0)==(eb|0)){if((eb|0)!=(ab|0)){Gb=ab;W=245;break}if((eb|0)!=(bb|0)){Gb=bb;W=245;break}if((eb|0)!=(cb|0)){Gb=cb;W=245}}else{Gb=eb;W=245}while(0);if((W|0)==245){W=0;c[db>>2]=Gb}Fb=Fb+1|0}while((Fb|0)!=(m|0));break}default:{if((gb+-1|0)>>>0<2)Hb=0;else{eb=0;while(1){Bg(s,r,Eb,a[(c[c[t>>2]>>2]|0)+8+eb>>0]|0,ua,n,g,h,gb,1,0,0)|0;eb=eb+1|0;if((eb|0)==(m|0))break d}}do{eb=c[c[t>>2]>>2]|0;cb=Bg(s,r,Eb,a[eb+8+Hb>>0]|0,ua,n,g,h,gb,1,0,0)|0;bb=p+(Hb<<2)|0;e:do if(na)c[bb>>2]=c[eb+24+(Hb<<2)>>2];else{c[bb>>2]=0;if((cb|0)<=0)break;ab=c[eb+24+(Hb<<2)>>2]|0;fb=0;while(1){Ib=c[n+(fb<<2)>>2]|0;fb=fb+1|0;if((ab|0)!=(Ib|0))break;if((fb|0)>=(cb|0))break e}c[bb>>2]=Ib}while(0);Hb=Hb+1|0}while((Hb|0)!=(m|0))}}}while(0);hb=u+20+(gb*12|0)|0;if(!(Cg(s,r,Eb,u+20+(gb*12|0)+4|0,o,p,Sa,Oa,q)|0)){W=250;break}if(y){na=u+20+((gb+2|0)*12|0)|0;c[na>>2]=c[hb>>2];c[na+4>>2]=c[hb+4>>2];c[na+8>>2]=c[hb+8>>2]}if(lb){na=u+20+((gb+1|0)*12|0)|0;c[na>>2]=c[hb>>2];c[na+4>>2]=c[hb+4>>2];c[na+8>>2]=c[hb+8>>2]}ka=ka+pb|0}while((ka|0)<2);if((W|0)==250){W=0;c[mb>>2]=c[mb>>2]|1}fa=fa+ob|0}while((fa|0)<2);a[u+1>>0]=Eb;fa=u+60|0;ob=c[fa+4>>2]|0;mb=u+12|0;c[mb>>2]=c[fa>>2];c[mb+4>>2]=ob}while(0)}if((j|0)<=0){l=k;return}Eb=u+8|0;W=u+12|0;if((i|0)>0){Jb=z;Kb=0}else{l=k;return}while(1){z=0;do{Oa=Jb+(z*12|0)+8|0;Sa=d[Eb>>0]|d[Eb+1>>0]<<8;a[Oa>>0]=Sa;a[Oa+1>>0]=Sa>>8;Sa=W;Oa=c[Sa+4>>2]|0;p=Jb+(z*12|0)|0;c[p>>2]=c[Sa>>2];c[p+4>>2]=Oa;z=z+1|0}while((z|0)!=(i|0));Kb=Kb+1|0;if((Kb|0)==(j|0))break;else Jb=Jb+((c[w>>2]|0)*12|0)|0}l=k;return}Jb=c[e+13580>>2]|0;Kb=c[e+13576>>2]|0;W=a[u>>0]|0;Eb=(S(x,g)|0)+h|0;f:do if(a[f+4412>>0]|0){if(!(a[f+4413>>0]|0)){h=c[f+1200>>2]|0;g=c[f+1204>>2]|0;if(!((i|0)>0&(j|0)>0)){Lb=0;break}if(!h){x=0;while(1){z=0;do{a[g+(z+Eb+(S(c[w>>2]|0,x)|0))>>0]=0;z=z+1|0}while((z|0)!=(i|0));x=x+1|0;if((x|0)==(j|0)){Lb=0;break f}}}else{x=0;while(1){z=0;do{Oa=z+Eb+(S(c[w>>2]|0,x)|0)|0;a[g+Oa>>0]=a[h+Oa>>0]|0;z=z+1|0}while((z|0)!=(i|0));x=x+1|0;if((x|0)==(j|0)){Lb=0;break f}}}}x=e+16|0;h=e+20|0;g=c[x>>2]|0;z=c[h>>2]|0;Oa=0;do{p=Oa<<24>>24;Sa=d[(p>>1)+(f+4417)>>0]|0;o=(256-Sa+(S(Sa,g)|0)|0)>>>8;if((z|0)<0){gc(q);Mb=c[h>>2]|0}else Mb=z;Sa=c[q>>2]|0;Hb=o<<24;if(Sa>>>0<Hb>>>0){Nb=0;Ob=o;Pb=Sa}else{Nb=1;Ob=(c[x>>2]|0)-o|0;Pb=Sa-Hb|0}Hb=d[1280+Ob>>0]|0;g=Ob<<Hb;z=Mb-Hb|0;c[q>>2]=Pb<<Hb;c[h>>2]=z;c[x>>2]=g;Oa=a[28812+(Nb+p)>>0]|0}while(Oa<<24>>24>0);g=0-(Oa<<24>>24)|0;if((j|0)>0?(x=g&255,z=f+1204|0,(i|0)>0):0){h=0;do{p=0;do{a[(c[z>>2]|0)+(p+Eb+(S(c[w>>2]|0,h)|0))>>0]=x;p=p+1|0}while((p|0)!=(i|0));h=h+1|0}while((h|0)!=(j|0));Lb=g}else Lb=g}else Lb=0;while(0);a[u+4>>0]=Lb;a[u+3>>0]=yg(s,r,Lb<<24>>24,q)|0;a[u+2>>0]=zg(s,r,1,q)|0;a[u+8>>0]=0;a[u+9>>0]=-1;switch(W<<24>>24){case 0:{W=e+16|0;r=e+20|0;s=0;do{Lb=Ge(u,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,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;h=c[b+616>>2]|0;i=a[c[c[e+292>>2]>>2]>>0]|0;j=a[29137+(i&255)>>0]|0;if(!((f|0)!=0&(h|0)==4&(i&255)>2)){i=a[29150+h>>0]|0;k=(j&255)<(i&255)?j:i;return k|0}i=c[e+268>>2]|0;h=c[e+296>>2]|0;f=c[e+300>>2]|0;e=j&255;l=(f|0)!=0;m=(h|0)!=0;if(l?(a[f+3>>0]|0)==0:0)n=d[f+2>>0]|0;else n=e;if(m?(a[h+3>>0]|0)==0:0)o=d[h+2>>0]|0;else o=e;h=m?o:n;o=((l?n:h)+h|0)>>>0>e>>>0&1;e=c[b+4108>>2]|0;switch(j<<24>>24){case 1:{p=e+1965+o|0;break}case 2:{p=e+1961+(o<<1)|0;break}case 3:{p=e+1955+(o*3|0)|0;break}default:p=0}e=d[p>>0]|0;b=g+4|0;h=(256-e+(S(c[b>>2]|0,e)|0)|0)>>>8;e=g+8|0;n=c[e>>2]|0;if((n|0)<0){gc(g);q=c[e>>2]|0}else q=n;n=c[g>>2]|0;l=h<<24;if(n>>>0<l>>>0){r=0;s=h;t=n}else{r=1;s=(c[b>>2]|0)-h|0;t=n-l|0}l=d[1280+s>>0]|0;n=s<<l;s=t<<l;t=q-l|0;c[g>>2]=s;c[e>>2]=t;c[b>>2]=n;if((j&255)>1&(r|0)!=0){l=d[p+1>>0]|0;q=(256-l+(S(l,n)|0)|0)>>>8;if((t|0)<0){gc(g);u=c[g>>2]|0;v=c[e>>2]|0}else{u=s;v=t}t=q<<24;if(u>>>0<t>>>0){w=0;x=q;y=u}else{w=1;x=(c[b>>2]|0)-q|0;y=u-t|0}t=d[1280+x>>0]|0;u=x<<t;x=y<<t;y=v-t|0;c[g>>2]=x;c[e>>2]=y;c[b>>2]=u;t=w+r|0;if((j&255)>2&(t|0)!=1){w=d[p+2>>0]|0;p=(256-w+(S(w,u)|0)|0)>>>8;if((y|0)<0){gc(g);z=c[g>>2]|0;A=c[e>>2]|0}else{z=x;A=y}y=p<<24;if(z>>>0<y>>>0){B=0;C=p;D=z}else{B=1;C=(c[b>>2]|0)-p|0;D=z-y|0}y=d[1280+C>>0]|0;c[g>>2]=D<<y;c[e>>2]=A-y;c[b>>2]=C<<y;E=B+t|0}else E=t}else E=r;if(i|0){switch(j<<24>>24){case 1:{F=i+12744+(o<<3)|0;break}case 2:{F=i+12720+(o*12|0)|0;break}case 3:{F=i+12688+(o<<4)|0;break}default:F=0}o=F+(E<<2)|0;c[o>>2]=(c[o>>2]|0)+1}k=E&255;return k|0}function Ag(a,b){a=a|0;b=b|0;Yg(c[a+17872>>2]|0,c[a+724>>2]|0,b<<3);return}function Bg(e,f,g,h,i,j,k,l,m,n,o,p){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0;if(!(c[e+748>>2]|0))q=0;else q=(c[(c[e+292>>2]|0)+4>>2]|0)+((S(c[e+608>>2]|0,k)|0)*12|0)+(l*12|0)|0;r=g<<24>>24!=11;s=j;c[s>>2]=0;c[s+4>>2]=0;a:do if(n){s=e+600|0;t=f+280|0;u=f+284|0;v=f+292|0;w=f+288|0;x=(m|0)>-1;y=c[i>>2]|0;z=y+k|0;A=(z|0)<0;do if(x){do if((!A?(B=c[i+4>>2]|0,C=B+l|0,(z|0)<(c[s>>2]|0)?(C|0)>=(c[t>>2]|0):0):0)?(C|0)<(c[u>>2]|0):0){C=c[(c[v>>2]|0)+((S(c[w>>2]|0,y)|0)+B<<2)>>2]|0;if((a[C+8>>0]|0)==h<<24>>24){if((d[C>>0]|0)<3)D=C+20+((c[21212+(m<<3)+(((B|0)==0&1)<<2)>>2]|0)*12|0)+4|0;else D=C+12|0;E=c[D>>2]|0;c[j>>2]=E;if(r){F=1;break a}else{G=E;H=1;I=1;break}}if((a[C+9>>0]|0)==h<<24>>24){if((d[C>>0]|0)<3)J=C+20+((c[21212+(m<<3)+(((B|0)==0&1)<<2)>>2]|0)*12|0)+8|0;else J=C+16|0;C=c[J>>2]|0;c[j>>2]=C;if(r){F=1;break a}else{G=C;H=1;I=1}}else{G=0;H=1;I=0}}else{G=0;H=0;I=0}while(0);C=c[i+8>>2]|0;B=C+k|0;if((B|0)<0){K=G;L=H;M=2;N=I;O=22;break a}E=i+12|0;P=c[E>>2]|0;Q=P+l|0;if(!((B|0)<(c[s>>2]|0)?(Q|0)>=(c[t>>2]|0):0)){K=G;L=H;M=2;N=I;O=22;break a}if((Q|0)>=(c[u>>2]|0)){K=G;L=H;M=2;N=I;O=22;break a}Q=c[(c[v>>2]|0)+((S(c[w>>2]|0,C)|0)+P<<2)>>2]|0;if((a[Q+8>>0]|0)==h<<24>>24){C=(d[Q>>0]|0)<3;if(!I){if(C)R=Q+20+((c[21212+(m<<3)+(((P|0)==0&1)<<2)>>2]|0)*12|0)+4|0;else R=Q+12|0;B=c[R>>2]|0;c[j>>2]=B;if(r){F=1;break a}else{T=B;O=20;break}}else{if(C)U=Q+20+((c[21212+(m<<3)+(((P|0)==0&1)<<2)>>2]|0)*12|0)+4|0;else U=Q+12|0;if((c[U>>2]|0)==(G|0)){K=G;L=1;M=2;N=1;O=22;break a}else{V=E;W=Q;O=39;break}}}if((a[Q+9>>0]|0)!=h<<24>>24){K=G;L=1;M=2;N=I;O=22;break a}C=(d[Q>>0]|0)<3;if(!I){if(C)X=Q+20+((c[21212+(m<<3)+(((P|0)==0&1)<<2)>>2]|0)*12|0)+8|0;else X=Q+16|0;B=c[X>>2]|0;c[j>>2]=B;if(r){F=1;break a}else{T=B;O=20;break}}else{if(C)Y=Q+20+((c[21212+(m<<3)+(((P|0)==0&1)<<2)>>2]|0)*12|0)+8|0;else Y=Q+16|0;if((c[Y>>2]|0)==(G|0)){K=G;L=1;M=2;N=1;O=22;break a}else{Z=E;_=Q;O=46;break}}}else{do if((!A?(Q=c[i+4>>2]|0,E=Q+l|0,(z|0)<(c[s>>2]|0)?(E|0)>=(c[t>>2]|0):0):0)?(E|0)<(c[u>>2]|0):0){E=c[(c[v>>2]|0)+((S(c[w>>2]|0,y)|0)+Q<<2)>>2]|0;if((a[E+8>>0]|0)==h<<24>>24){Q=c[E+12>>2]|0;c[j>>2]=Q;if(r){F=1;break a}else{$=Q;aa=1;ba=1;break}}if((a[E+9>>0]|0)==h<<24>>24){Q=c[E+16>>2]|0;c[j>>2]=Q;if(r){F=1;break a}else{$=Q;aa=1;ba=1}}else{$=0;aa=1;ba=0}}else{$=0;aa=0;ba=0}while(0);Q=c[i+8>>2]|0;E=Q+k|0;if((E|0)<0){K=$;L=aa;M=2;N=ba;O=22;break a}P=i+12|0;C=c[P>>2]|0;B=C+l|0;if(!((E|0)<(c[s>>2]|0)?(B|0)>=(c[t>>2]|0):0)){K=$;L=aa;M=2;N=ba;O=22;break a}if((B|0)>=(c[u>>2]|0)){K=$;L=aa;M=2;N=ba;O=22;break a}B=c[(c[v>>2]|0)+((S(c[w>>2]|0,Q)|0)+C<<2)>>2]|0;if((a[B+8>>0]|0)==h<<24>>24){C=c[B+12>>2]|0;if(!ba){c[j>>2]=C;if(r){F=1;break a}else{T=C;O=20;break}}if((C|0)==($|0)){K=$;L=1;M=2;N=1;O=22;break a}if(x){V=P;W=B;O=39;break}else{ca=B;O=41;break}}if((a[B+9>>0]|0)!=h<<24>>24){K=$;L=1;M=2;N=ba;O=22;break a}C=c[B+16>>2]|0;if(!ba){c[j>>2]=C;if(r){F=1;break a}else{T=C;O=20;break}}if((C|0)==($|0)){K=$;L=1;M=2;N=1;O=22;break a}if(x){Z=P;_=B;O=46}else{da=B;O=48}}while(0);if((O|0)==20){ea=T;fa=1;ga=2;ha=f+292|0;ia=f+284|0;ja=f+280|0;ka=e+600|0;la=f+288|0;ma=1;O=21;break}else if((O|0)==39)if((d[W>>0]|0)<3){na=W+20+((c[21212+(m<<3)+(((c[V>>2]|0)==0&1)<<2)>>2]|0)*12|0)+4|0;O=42}else{ca=W;O=41}else if((O|0)==46)if((d[_>>0]|0)<3){oa=_+20+((c[21212+(m<<3)+(((c[Z>>2]|0)==0&1)<<2)>>2]|0)*12|0)+8|0;O=49}else{da=_;O=48}if((O|0)==41){na=ca+12|0;O=42}else if((O|0)==48){oa=da+16|0;O=49}if((O|0)==42){c[j+4>>2]=c[na>>2];F=2;break}else if((O|0)==49){c[j+4>>2]=c[oa>>2];F=2;break}}else{K=0;L=0;M=0;N=0;O=22}while(0);b:do if((O|0)==22){oa=e+600|0;na=f+280|0;da=f+284|0;ca=f+292|0;_=f+288|0;if(r){Z=(N|0)==0;m=(N|0)==0;W=K;V=L;T=M;c:while(1){$=c[i+(T<<3)>>2]|0;ba=$+k|0;do if(((ba|0)>=0?(aa=c[i+(T<<3)+4>>2]|0,G=aa+l|0,(ba|0)<(c[oa>>2]|0)?(G|0)>=(c[na>>2]|0):0):0)?(G|0)<(c[da>>2]|0):0){G=c[(c[ca>>2]|0)+((S(c[_>>2]|0,$)|0)+aa<<2)>>2]|0;if((a[G+8>>0]|0)==h<<24>>24){aa=G+12|0;if(Z){pa=aa;break c}Y=c[aa>>2]|0;if((Y|0)==(K|0)){qa=K;ra=1;break}else{sa=Y;ta=N;O=58;break b}}if((a[G+9>>0]|0)==h<<24>>24){Y=G+16|0;if(m){pa=Y;break c}G=c[Y>>2]|0;if((G|0)!=(W|0)){ua=G;va=N;O=63;break b}else{qa=W;ra=1}}else{qa=W;ra=1}}else{qa=W;ra=V}while(0);T=T+1|0;if((T|0)>=8){wa=ra;xa=N;O=66;break b}else{W=qa;V=ra}}c[j+(N<<2)>>2]=c[pa>>2];F=1}else{ea=K;fa=L;ga=M;ha=ca;ia=da;ja=na;ka=oa;la=_;ma=N;O=21}}while(0);d:do if((O|0)==21){N=ea;M=ea;L=fa;K=ga;pa=ma;while(1){ra=c[i+(K<<3)>>2]|0;qa=ra+k|0;do if(((qa|0)>=0?(V=c[i+(K<<3)+4>>2]|0,W=V+l|0,(qa|0)<(c[ka>>2]|0)?(W|0)>=(c[ja>>2]|0):0):0)?(W|0)<(c[ia>>2]|0):0){W=c[(c[ha>>2]|0)+((S(c[la>>2]|0,ra)|0)+V<<2)>>2]|0;if((a[W+8>>0]|0)==h<<24>>24){V=c[W+12>>2]|0;if(pa)if((V|0)==(N|0)){ya=M;za=N;Aa=1;Ba=pa;break}else{sa=V;ta=pa;O=58;break d}else{c[j>>2]=V;ya=V;za=V;Aa=1;Ba=1;break}}if((a[W+9>>0]|0)==h<<24>>24){V=c[W+16>>2]|0;if(pa)if((V|0)==(M|0)){ya=M;za=M;Aa=1;Ba=pa;break}else{ua=V;va=pa;O=63;break d}else{c[j>>2]=V;ya=V;za=V;Aa=1;Ba=1;break}}else{ya=M;za=N;Aa=1;Ba=pa}}else{ya=M;za=N;Aa=L;Ba=pa}while(0);K=K+1|0;if((K|0)>=8){wa=Aa;xa=Ba;O=66;break}else{N=za;M=ya;L=Aa;pa=Ba}}}while(0);e:do if((O|0)==58){c[j+(ta<<2)>>2]=sa;Ca=ta;O=110}else if((O|0)==63){c[j+(va<<2)>>2]=ua;Ca=va;O=110}else if((O|0)==66){Ba=(q|0)!=0;do if(Ba){if((o|0)!=0&(c[e+4096>>2]|0)!=0)Ab[o&7](p,k);if((a[q+8>>0]|0)==h<<24>>24){if(!xa){c[j>>2]=c[q>>2];if(r){F=1;break e}else{Da=1;break}}Aa=c[q>>2]|0;if((Aa|0)==(c[j>>2]|0)){Da=xa;break}c[j+(xa<<2)>>2]=Aa;Ca=xa;O=110;break e}if((a[q+9>>0]|0)==h<<24>>24){Aa=q+4|0;if(!xa){c[j>>2]=c[Aa>>2];if(r){F=1;break e}else{Da=1;break}}ya=c[Aa>>2]|0;if((ya|0)!=(c[j>>2]|0)){c[j+(xa<<2)>>2]=ya;Ca=xa;O=110;break e}else Da=xa}else Da=xa}else Da=xa;while(0);f:do if(wa){ya=e+600|0;Aa=f+280|0;za=f+284|0;la=f+292|0;ha=f+288|0;ia=e+3924+(h<<24>>24<<2)|0;ja=0;ka=Da;g:while(1){ma=c[i+(ja<<3)>>2]|0;ga=ma+k|0;do if((((ga|0)>=0?(fa=c[i+(ja<<3)+4>>2]|0,ea=fa+l|0,(ga|0)<(c[ya>>2]|0)?(ea|0)>=(c[Aa>>2]|0):0):0)?(ea|0)<(c[za>>2]|0):0)?(ea=c[(c[la>>2]|0)+((S(c[ha>>2]|0,ma)|0)+fa<<2)>>2]|0,fa=a[ea+8>>0]|0,fa<<24>>24>0):0){do if(fa<<24>>24!=h<<24>>24){pa=ea+12|0;L=b[pa>>1]|0;M=b[pa+2>>1]|0;pa=(c[e+3924+(fa<<24>>24<<2)>>2]|0)==(c[ia>>2]|0);Ea=((pa?M:0-(M&65535)&65535)&65535)<<16|(pa?L:0-(L&65535)&65535)&65535;if(!ka){c[j>>2]=Ea;if(r){F=1;break e}else{Fa=1;break}}else if((Ea|0)==(c[j>>2]|0)){Fa=ka;break}else{O=88;break g}}else Fa=ka;while(0);fa=a[ea+9>>0]|0;if(!(fa<<24>>24<1?1:fa<<24>>24==h<<24>>24)?(L=c[ea+16>>2]|0,(L|0)!=(c[ea+12>>2]|0)):0){pa=b[ea+16+2>>1]|0;M=(c[e+3924+(fa<<24>>24<<2)>>2]|0)==(c[ia>>2]|0);Ga=((M?pa:0-(pa&65535)&65535)&65535)<<16|(M?L:0-L|0)&65535;if(!Fa){c[j>>2]=Ga;if(r){F=1;break e}else{Ha=1;break}}else if((Ga|0)==(c[j>>2]|0)){Ha=Fa;break}else{O=94;break g}}else Ha=Fa}else Ha=ka;while(0);ja=ja+1|0;if((ja|0)>=8){Ia=Ha;break f}else ka=Ha}if((O|0)==88){c[j+(ka<<2)>>2]=Ea;Ca=ka;O=110;break e}else if((O|0)==94){c[j+(Fa<<2)>>2]=Ga;Ca=Fa;O=110;break e}}else Ia=Da;while(0);do if(Ba){ja=a[q+8>>0]|0;ia=h<<24>>24;do if(ja<<24>>24>0?ja<<24>>24!=h<<24>>24:0){ha=b[q>>1]|0;la=b[q+2>>1]|0;za=(c[e+3924+(ja<<24>>24<<2)>>2]|0)==(c[e+3924+(ia<<2)>>2]|0);Aa=za?la:0-(la&65535)&65535;la=za?ha:0-(ha&65535)&65535;if(!Ia){b[j>>1]=la;b[j+2>>1]=Aa;if(r){F=1;break e}else{Ja=1;break}}if(((Aa&65535)<<16|la&65535|0)!=(c[j>>2]|0)){ha=j+(Ia<<2)|0;b[ha>>1]=la;b[ha+2>>1]=Aa;Ca=Ia;O=110;break e}else Ja=Ia}else Ja=Ia;while(0);ja=a[q+9>>0]|0;ka=ja<<24>>24;if(!(ja<<24>>24<1?1:ja<<24>>24==h<<24>>24)?(ja=q+4|0,Aa=c[ja>>2]|0,(Aa|0)!=(c[q>>2]|0)):0){ha=b[ja+2>>1]|0;ja=(c[e+3924+(ka<<2)>>2]|0)==(c[e+3924+(ia<<2)>>2]|0);ka=ja?ha:0-(ha&65535)&65535;ha=ja?Aa:0-Aa|0;Aa=ha&65535;if(!Ja){b[j>>1]=Aa;b[j+2>>1]=ka;if(r){F=1;break e}else break}if(((ka&65535)<<16|ha&65535|0)!=(c[j>>2]|0)){ha=j+(Ja<<2)|0;b[ha>>1]=Aa;b[ha+2>>1]=ka;Ca=Ja;O=110;break e}}}while(0);F=g<<24>>24==11?2:1}while(0);if((O|0)==110){O=Ca+1|0;if((Ca|0)>-1)F=O;else{Ka=O;return Ka|0}}O=(c[f+316>>2]|0)+-128|0;Ca=(c[f+320>>2]|0)+128|0;g=(c[f+324>>2]|0)+-128|0;Ja=(c[f+328>>2]|0)+128|0;f=0;do{r=j+(f<<2)|0;e=r+2|0;q=b[e>>1]|0;b[e>>1]=(q|0)<(O|0)?O:(q|0)>(Ca|0)?Ca:q;q=b[r>>1]|0;b[r>>1]=(q|0)<(g|0)?g:(q|0)>(Ja|0)?Ja:q;f=f+1|0}while((f|0)!=(F|0));Ka=F;return Ka|0}function Cg(f,g,h,i,j,k,m,n,o){f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;p=l;l=l+16|0;q=p;switch(h<<24>>24){case 13:{h=c[g+268>>2]|0;g=h|0?h+12800|0:0;if((m|0)<0){r=1;l=p;return r|0}h=f+4108|0;f=o+4|0;s=o+8|0;t=(n|0)==0;n=q+2|0;u=0;v=1;while(1){w=i+(u<<2)|0;x=j+(u<<2)|0;y=c[h>>2]|0;z=c[f>>2]|0;A=c[s>>2]|0;B=0;do{C=B<<24>>24;D=d[(C>>1)+(y+1970)>>0]|0;E=(256-D+(S(D,z)|0)|0)>>>8;if((A|0)<0){gc(o);F=c[s>>2]|0}else F=A;D=c[o>>2]|0;G=E<<24;if(D>>>0<G>>>0){H=0;I=E;J=D}else{H=1;I=(c[f>>2]|0)-E|0;J=D-G|0}G=d[1280+I>>0]|0;z=I<<G;A=F-G|0;c[o>>2]=J<<G;c[s>>2]=A;c[f>>2]=z;B=a[27684+(H+C)>>0]|0}while(B<<24>>24>0);z=0-(B<<24>>24)|0;if(!t?(A=b[x>>1]|0,C=A<<16>>16,((A<<16>>16>-1?C:0-C|0)|0)<64):0){C=b[x+2>>1]|0;A=C<<16>>16;K=((C<<16>>16>-1?A:0-A|0)|0)<64}else K=0;A=K&1;c[q>>2]=0;if((z|1|0)==3)b[q>>1]=Dg(o,y+1973|0,A)|0;if((z|2|0)==3)b[n>>1]=Dg(o,y+2006|0,A)|0;Me(q,g);A=(e[q>>1]|0)+(e[x>>1]|0)&65535;b[w>>1]=A;z=(e[n>>1]|0)+(e[x+2>>1]|0)&65535;b[w+2>>1]=z;if((v|0)!=0&(A+16383&65535)<32766)L=(z+16383&65535)<32766;else L=0;z=L&1;if((u|0)==(m|0)){r=z;break}else{u=u+1|0;v=z}}l=p;return r|0}case 10:case 11:{v=k;k=c[v+4>>2]|0;u=i;c[u>>2]=c[v>>2];c[u+4>>2]=k;r=1;l=p;return r|0}case 12:{k=i;c[k>>2]=0;c[k+4>>2]=0;r=1;l=p;return r|0}default:{r=0;l=p;return r|0}}return 0}function Dg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0;g=d[e>>0]|0;h=b+4|0;i=(256-g+(S(c[h>>2]|0,g)|0)|0)>>>8;g=b+8|0;j=c[g>>2]|0;if((j|0)<0){gc(b);k=c[g>>2]|0}else k=j;j=c[b>>2]|0;l=i<<24;if(j>>>0<l>>>0){m=0;n=i;o=j}else{m=1;n=(c[h>>2]|0)-i|0;o=j-l|0}l=d[1280+n>>0]|0;j=n<<l;n=o<<l;o=k-l|0;c[b>>2]=n;c[g>>2]=o;c[h>>2]=j;l=n;n=j;j=o;o=0;do{k=o<<24>>24;i=d[(k>>1)+(e+1)>>0]|0;p=(256-i+(S(i,n)|0)|0)>>>8;if((j|0)<0){gc(b);q=c[b>>2]|0;r=c[g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c[h>>2]=l;C=a[27712+(M+j)>>0]|0}while(C<<24>>24>0);M=0-(C<<24>>24)|0;if(!f){P=1;Q=D<<3;R=M<<1;T=R|Q;U=T|P;V=E+U|0;W=(m|0)!=0;X=0-V|0;Y=W?X:V;return Y|0}f=d[(u?e+31|0:e+32|0)>>0]|0;e=(256-f+(S(f,l)|0)|0)>>>8;if((A|0)<0){gc(b);Z=c[b>>2]|0;_=c[g>>2]|0}else{Z=B;_=A}A=e<<24;if(Z>>>0<A>>>0){$=0;aa=e;ba=Z}else{$=1;aa=(c[h>>2]|0)-e|0;ba=Z-A|0}A=d[1280+aa>>0]|0;c[b>>2]=ba<<A;c[g>>2]=_-A;c[h>>2]=aa<<A;P=$;Q=D<<3;R=M<<1;T=R|Q;U=T|P;V=E+U|0;W=(m|0)!=0;X=0-V|0;Y=W?X:V;return Y|0}function Eg(a){a=a|0;var b=0;if((kc(a,8)|0)==73?(kc(a,8)|0)==131:0)b=(kc(a,8)|0)==66;else b=0;return b&1|0}function Fg(a,b,d){a=a|0;b=b|0;d=d|0;c[b>>2]=(kc(a,16)|0)+1;c[d>>2]=(kc(a,16)|0)+1;return}function Gg(a){a=a|0;var b=0,c=0,d=0;b=jc(a)|0;c=(jc(a)|0)<<1|b;if((c|0)<=2){d=c;return d|0}d=(jc(a)|0)+c|0;return d|0}

// EMSCRIPTEN_END_FUNCS
var wb=[lk,$f,Bh,wh,ei,Re,vh,lk];var xb=[mk,xd,zd,wd,Cd,rd,td,od,Ad,qd,Dd,yd,Bd,ud,vd,mk];var yb=[nk,we];var zb=[ok,pe,se,te,ue,Ig,ah,dh,eh,xf,xe,ye,Vg,Wg,Ee,Xg,uj,ok,ok,ok,ok,ok,ok,ok,ok,ok,ok,ok,ok,ok,ok,ok];var Ab=[pk,Wd,ae,Zd,be,de,fe,Ag];var Bb=[qk,qe,re,_f,uh,ve,hc,mh];var Cb=[rk];var Db=[sk,cc,oe,hf,Yf,bh,nh,sk];var Eb=[tk,dg];var Fb=[uk,Qg];var Gb=[vk,Zf,ag,cg,ig,jg,kg,lg,mg,ng,og,pg,qg,rg,sg,tg,ug,vg,lf,mf,nf,Nf,eg,Se,Ng,Pg,Jf,Vb,Xb,vj,ch,vk];var Hb=[wk,bg,fc,wk];var Ib=[xk,Oc,Pc,Qc,Rc,Sc,Tc,Uc,Vc,mc,sc,uc,vc,oc,zc,Ac,Bc,nc,wc,xc,yc,pc,Cc,Ec,Fc,qc,Gc,Ic,Jc,rc,Kc,Mc,Nc,Wc,Xc,Yc,Zc,_c,$c,ad,bd,gd,hd,id,jd,cd,dd,ed,fd,kd,ld,md,nd,vf,Ub,Hg,xk,xk,xk,xk,xk,xk,xk,xk];return{__emscripten_atomic_fetch_and_xor_u64:xi,_bitshift64Shl:Mj,_emscripten_atomic_load_f32:Ei,_bitshift64Lshr:Nj,_ogv_video_decoder_destroy:ph,___emscripten_pthread_data_constructor:th,stackSave:Kb,_emscripten_atomic_xor_u64:Mi,_emscripten_atomic_load_u64:Gi,___udivdi3:Tj,_ogv_video_decoder_process_frame:rh,getTempRet0:Pb,_emscripten_atomic_and_u64:Ai,_emscripten_sync_run_in_main_thread:Oi,_emscripten_sync_run_in_main_thread_4:Ti,_emscripten_sync_run_in_main_thread_5:Ui,_emscripten_sync_run_in_main_thread_6:Vi,_emscripten_sync_run_in_main_thread_7:Wi,_emscripten_sync_run_in_main_thread_0:Pi,_emscripten_sync_run_in_main_thread_1:Qi,_emscripten_sync_run_in_main_thread_2:Ri,__emscripten_atomic_fetch_and_sub_u64:wi,_emscripten_atomic_exchange_u32:Ci,_ogv_video_decoder_process_header:qh,_emscripten_atomic_cas_u64:Bi,_llvm_cttz_i32:Rj,_emscripten_atomic_sub_u64:Li,_emscripten_sync_run_in_main_thread_xprintf_varargs:Xi,_memcpy:Qj,___errno_location:yh,___muldi3:Vj,__emscripten_atomic_fetch_and_and_u64:ui,_emscripten_sync_run_in_main_thread_3:Si,___uremdi3:Xj,stackAlloc:Jb,_i64Subtract:Ij,_ogv_video_decoder_init:lh,_memset:Jj,setTempRet0:Ob,_realloc:Dj,_i64Add:Kj,_emscripten_atomic_store_u64:Ki,_emscripten_atomic_load_f64:Fi,_emscripten_main_thread_process_queued_calls:Ni,_ogv_video_decoder_async:oh,_emscripten_get_global_libc:sh,__emscripten_atomic_fetch_and_add_u64:ti,__emscripten_atomic_fetch_and_or_u64:vi,_emscripten_async_run_in_main_thread:yi,_llvm_bswap_i32:Yj,runPostSets:Gj,___muldsi3:Uj,_testSetjmp:Oj,_saveSetjmp:Lj,_emscripten_atomic_add_u64:zi,_free:Cj,_emscripten_atomic_store_f32:Ii,setThrew:Nb,_emscripten_atomic_exchange_u64:Di,_emscripten_atomic_store_f64:Ji,___pthread_tsd_run_dtors:Yi,_emscripten_set_current_thread_status:Hj,stackRestore:Lb,___udivmoddi4:Sj,_malloc:Bj,establishStackSpace:Mb,_emscripten_conditional_set_current_thread_status:Pj,_sbrk:Zj,_memmove:Wj,_emscripten_atomic_or_u64:Hi,stackAlloc:Jb,stackSave:Kb,stackRestore:Lb,establishStackSpace:Mb,setThrew:Nb,setTempRet0:Ob,getTempRet0:Pb,dynCall_iiii:_j,dynCall_viiiiiiiiii:$j,dynCall_i:ak,dynCall_vi:bk,dynCall_vii:ck,dynCall_ii:dk,dynCall_viii:ek,dynCall_v:fk,dynCall_iiiii:gk,dynCall_viiiiii:hk,dynCall_iii:ik,dynCall_iiiiii:jk,dynCall_viiii:kk}})


// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var __emscripten_atomic_fetch_and_xor_u64=Module["__emscripten_atomic_fetch_and_xor_u64"]=asm["__emscripten_atomic_fetch_and_xor_u64"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var _emscripten_atomic_load_f32=Module["_emscripten_atomic_load_f32"]=asm["_emscripten_atomic_load_f32"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _ogv_video_decoder_destroy=Module["_ogv_video_decoder_destroy"]=asm["_ogv_video_decoder_destroy"];var ___emscripten_pthread_data_constructor=Module["___emscripten_pthread_data_constructor"]=asm["___emscripten_pthread_data_constructor"];var stackSave=Module["stackSave"]=asm["stackSave"];var _emscripten_atomic_xor_u64=Module["_emscripten_atomic_xor_u64"]=asm["_emscripten_atomic_xor_u64"];var _emscripten_atomic_load_u64=Module["_emscripten_atomic_load_u64"]=asm["_emscripten_atomic_load_u64"];var ___udivdi3=Module["___udivdi3"]=asm["___udivdi3"];var _ogv_video_decoder_process_frame=Module["_ogv_video_decoder_process_frame"]=asm["_ogv_video_decoder_process_frame"];var getTempRet0=Module["getTempRet0"]=asm["getTempRet0"];var _emscripten_atomic_and_u64=Module["_emscripten_atomic_and_u64"]=asm["_emscripten_atomic_and_u64"];var _emscripten_sync_run_in_main_thread=Module["_emscripten_sync_run_in_main_thread"]=asm["_emscripten_sync_run_in_main_thread"];var _emscripten_sync_run_in_main_thread_4=Module["_emscripten_sync_run_in_main_thread_4"]=asm["_emscripten_sync_run_in_main_thread_4"];var _emscripten_sync_run_in_main_thread_5=Module["_emscripten_sync_run_in_main_thread_5"]=asm["_emscripten_sync_run_in_main_thread_5"];var _emscripten_sync_run_in_main_thread_6=Module["_emscripten_sync_run_in_main_thread_6"]=asm["_emscripten_sync_run_in_main_thread_6"];var _emscripten_sync_run_in_main_thread_7=Module["_emscripten_sync_run_in_main_thread_7"]=asm["_emscripten_sync_run_in_main_thread_7"];var _emscripten_sync_run_in_main_thread_0=Module["_emscripten_sync_run_in_main_thread_0"]=asm["_emscripten_sync_run_in_main_thread_0"];var _emscripten_sync_run_in_main_thread_1=Module["_emscripten_sync_run_in_main_thread_1"]=asm["_emscripten_sync_run_in_main_thread_1"];var _emscripten_sync_run_in_main_thread_2=Module["_emscripten_sync_run_in_main_thread_2"]=asm["_emscripten_sync_run_in_main_thread_2"];var __emscripten_atomic_fetch_and_sub_u64=Module["__emscripten_atomic_fetch_and_sub_u64"]=asm["__emscripten_atomic_fetch_and_sub_u64"];var _emscripten_atomic_exchange_u32=Module["_emscripten_atomic_exchange_u32"]=asm["_emscripten_atomic_exchange_u32"];var _ogv_video_decoder_process_header=Module["_ogv_video_decoder_process_header"]=asm["_ogv_video_decoder_process_header"];var _emscripten_atomic_cas_u64=Module["_emscripten_atomic_cas_u64"]=asm["_emscripten_atomic_cas_u64"];var _llvm_cttz_i32=Module["_llvm_cttz_i32"]=asm["_llvm_cttz_i32"];var _emscripten_atomic_sub_u64=Module["_emscripten_atomic_sub_u64"]=asm["_emscripten_atomic_sub_u64"];var _emscripten_sync_run_in_main_thread_xprintf_varargs=Module["_emscripten_sync_run_in_main_thread_xprintf_varargs"]=asm["_emscripten_sync_run_in_main_thread_xprintf_varargs"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var ___muldi3=Module["___muldi3"]=asm["___muldi3"];var __emscripten_atomic_fetch_and_and_u64=Module["__emscripten_atomic_fetch_and_and_u64"]=asm["__emscripten_atomic_fetch_and_and_u64"];var _emscripten_sync_run_in_main_thread_3=Module["_emscripten_sync_run_in_main_thread_3"]=asm["_emscripten_sync_run_in_main_thread_3"];var ___uremdi3=Module["___uremdi3"]=asm["___uremdi3"];var stackAlloc=Module["stackAlloc"]=asm["stackAlloc"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _ogv_video_decoder_init=Module["_ogv_video_decoder_init"]=asm["_ogv_video_decoder_init"];var _memset=Module["_memset"]=asm["_memset"];var setTempRet0=Module["setTempRet0"]=asm["setTempRet0"];var _realloc=Module["_realloc"]=asm["_realloc"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _emscripten_atomic_store_u64=Module["_emscripten_atomic_store_u64"]=asm["_emscripten_atomic_store_u64"];var _emscripten_atomic_load_f64=Module["_emscripten_atomic_load_f64"]=asm["_emscripten_atomic_load_f64"];var _emscripten_main_thread_process_queued_calls=Module["_emscripten_main_thread_process_queued_calls"]=asm["_emscripten_main_thread_process_queued_calls"];var _ogv_video_decoder_async=Module["_ogv_video_decoder_async"]=asm["_ogv_video_decoder_async"];var _emscripten_get_global_libc=Module["_emscripten_get_global_libc"]=asm["_emscripten_get_global_libc"];var __emscripten_atomic_fetch_and_add_u64=Module["__emscripten_atomic_fetch_and_add_u64"]=asm["__emscripten_atomic_fetch_and_add_u64"];var __emscripten_atomic_fetch_and_or_u64=Module["__emscripten_atomic_fetch_and_or_u64"]=asm["__emscripten_atomic_fetch_and_or_u64"];var _emscripten_async_run_in_main_thread=Module["_emscripten_async_run_in_main_thread"]=asm["_emscripten_async_run_in_main_thread"];var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var ___muldsi3=Module["___muldsi3"]=asm["___muldsi3"];var _testSetjmp=Module["_testSetjmp"]=asm["_testSetjmp"];var _saveSetjmp=Module["_saveSetjmp"]=asm["_saveSetjmp"];var _emscripten_atomic_add_u64=Module["_emscripten_atomic_add_u64"]=asm["_emscripten_atomic_add_u64"];var _free=Module["_free"]=asm["_free"];var _emscripten_atomic_store_f32=Module["_emscripten_atomic_store_f32"]=asm["_emscripten_atomic_store_f32"];var setThrew=Module["setThrew"]=asm["setThrew"];var _emscripten_atomic_exchange_u64=Module["_emscripten_atomic_exchange_u64"]=asm["_emscripten_atomic_exchange_u64"];var _emscripten_atomic_store_f64=Module["_emscripten_atomic_store_f64"]=asm["_emscripten_atomic_store_f64"];var ___pthread_tsd_run_dtors=Module["___pthread_tsd_run_dtors"]=asm["___pthread_tsd_run_dtors"];var _emscripten_set_current_thread_status=Module["_emscripten_set_current_thread_status"]=asm["_emscripten_set_current_thread_status"];var stackRestore=Module["stackRestore"]=asm["stackRestore"];var ___udivmoddi4=Module["___udivmoddi4"]=asm["___udivmoddi4"];var _malloc=Module["_malloc"]=asm["_malloc"];var establishStackSpace=Module["establishStackSpace"]=asm["establishStackSpace"];var _emscripten_conditional_set_current_thread_status=Module["_emscripten_conditional_set_current_thread_status"]=asm["_emscripten_conditional_set_current_thread_status"];var _sbrk=Module["_sbrk"]=asm["_sbrk"];var _memmove=Module["_memmove"]=asm["_memmove"];var _emscripten_atomic_or_u64=Module["_emscripten_atomic_or_u64"]=asm["_emscripten_atomic_or_u64"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiiiiiiii=Module["dynCall_viiiiiiiiii"]=asm["dynCall_viiiiiiiiii"];var dynCall_i=Module["dynCall_i"]=asm["dynCall_i"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_viii=Module["dynCall_viii"]=asm["dynCall_viii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_iiiiii=Module["dynCall_iiiiii"]=asm["dynCall_iiiiii"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];Runtime.stackAlloc=Module["stackAlloc"];Runtime.stackSave=Module["stackSave"];Runtime.stackRestore=Module["stackRestore"];Runtime.establishStackSpace=Module["establishStackSpace"];Runtime.setTempRet0=Module["setTempRet0"];Runtime.getTempRet0=Module["getTempRet0"];Module["asm"]=asm;Module["then"]=(function(func){if(Module["calledRun"]){func(Module)}else{var old=Module["onRuntimeInitialized"];Module["onRuntimeInitialized"]=(function(){if(old)old();func(Module)})}return Module});function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=0;i<argc-1;i=i+1){argv.push(allocate(intArrayFromString(args[i]),"i8",ALLOC_NORMAL));pad()}argv.push(0);argv=allocate(argv,"i32",ALLOC_NORMAL);try{var ret=Module["_main"](argc,argv,0);exit(ret,true)}catch(e){if(e instanceof ExitStatus){return}else if(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{var toLog=e;if(e&&typeof e==="object"&&e.stack){toLog=[e,e.stack]}Module.printErr("exception thrown: "+toLog);Module["quit"](1,e)}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();if(Module["_main"]&&shouldRunNow)Module["callMain"](args);postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout((function(){setTimeout((function(){Module["setStatus"]("")}),1);doRun()}),1)}else{doRun()}}Module["run"]=Module.run=run;function exit(status,implicit){if(implicit&&Module["noExitRuntime"]){return}if(Module["noExitRuntime"]){}else{PThread.terminateAllThreads();ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(Module["onExit"])Module["onExit"](status)}if(ENVIRONMENT_IS_NODE){process["exit"](status)}Module["quit"](status,new ExitStatus(status))}Module["exit"]=Module.exit=exit;var abortDecorators=[];function abort(what){if(ENVIRONMENT_IS_PTHREAD)console.error("Pthread aborting at "+(new Error).stack);if(what!==undefined){Module.print(what);Module.printErr(what);what=JSON.stringify(what)}else{what=""}ABORT=true;EXITSTATUS=1;var extra="\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";var output="abort("+what+") at "+stackTrace()+extra;if(abortDecorators){abortDecorators.forEach((function(decorator){output=decorator(output,what)}))}throw output}Module["abort"]=Module.abort=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"]){shouldRunNow=false}Module["noExitRuntime"]=true;if(!ENVIRONMENT_IS_PTHREAD)run();var inputBuffer,inputBufferSize;function reallocInputBuffer(size){if(inputBuffer&&inputBufferSize>=size){return inputBuffer}if(inputBuffer){Module._free(inputBuffer)}inputBufferSize=size;inputBuffer=Module._malloc(inputBufferSize);return inputBuffer}var getTimestamp;if(typeof performance==="undefined"||typeof performance.now==="undefined"){getTimestamp=Date.now}else{getTimestamp=performance.now.bind(performance)}function time(func){var start=getTimestamp(),ret;ret=func();Module.cpuTime+=getTimestamp()-start;return ret}function copyByteArray(bytes){var heap=bytes.buffer;if(heap instanceof ArrayBuffer&&typeof heap.slice==="function"){var extract=heap.slice(bytes.byteOffset,bytes.byteOffset+bytes.byteLength);return new Uint8Array(extract)}else{return new Uint8Array(bytes)}}Module.loadedMetadata=!!options.videoFormat;Module.videoFormat=options.videoFormat||null;Module.frameBuffer=null;Module.cpuTime=0;Object.defineProperty(Module,"processing",{get:function getProcessing(){return false}});Module.init=(function(callback){function finish(){time((function(){Module._ogv_video_decoder_init()}));callback()}if(Module.wasmBinary){Module.onRuntimeInitialized=(function(){finish()})}else{finish()}});Module.processHeader=(function(data,callback){var ret=time((function(){var len=data.byteLength;var buffer=reallocInputBuffer(len);Module.HEAPU8.set(new Uint8Array(data),buffer);return Module._ogv_video_decoder_process_header(buffer,len)}));callback(ret)});Module.callbacks=[];Module.processFrame=(function(data,callback){var isAsync=Module._ogv_video_decoder_async();var len=data.byteLength;var buffer=Module._malloc(len);function callbackWrapper(ret){Module._free(buffer);callback(ret)}if(isAsync){Module.callbacks.push(callbackWrapper)}var ret=time((function(){Module.HEAPU8.set(new Uint8Array(data),buffer);return Module._ogv_video_decoder_process_frame(buffer,len)}));if(!isAsync){callbackWrapper(ret)}});Module.close=(function(){});Math.imul=Math_imul_orig





  return OGVDecoderVideoVP9MT;
};
})();
